From: Darrick J. Wong Date: Mon, 3 Feb 2025 22:00:29 +0000 (-0800) Subject: common/rc: return mount_ret in _try_scratch_mount X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dba402b7e3ae10cba69b5b01742e7e23a72b666a;p=users%2Fhch%2Fxfstests-dev.git common/rc: return mount_ret in _try_scratch_mount Make the _try_scratch_mount and _test_mount helpers return the exit code from mount, not _prepare_for_eio_shutdown. Cc: # v2024.12.08 Fixes: 1a49022fab9b4d ("fstests: always use fail-at-unmount semantics for XFS") Signed-off-by: "Darrick J. Wong" Reviewed-by: Dave Chinner Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index 60f5f1198..2925247fe 100644 --- a/common/rc +++ b/common/rc @@ -440,6 +440,7 @@ _try_scratch_mount() [ $mount_ret -ne 0 ] && return $mount_ret _idmapped_mount $SCRATCH_DEV $SCRATCH_MNT _prepare_for_eio_shutdown $SCRATCH_DEV + return 0 } # mount scratch device with given options and _fail if mount fails @@ -657,6 +658,7 @@ _test_mount() [ $mount_ret -ne 0 ] && return $mount_ret _idmapped_mount $TEST_DEV $TEST_DIR _prepare_for_eio_shutdown $TEST_DEV + return 0 } _test_unmount()