From 3750b4e082cf2d07ecf43e8fd1f5737902d2c89c Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 21 Jan 2025 20:03:44 -0800 Subject: [PATCH] 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" --- common/rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/rc b/common/rc index e5685ca7f..aabcb7906 100644 --- a/common/rc +++ b/common/rc @@ -436,6 +436,7 @@ _try_scratch_mount() [ $mount_ret -ne 0 ] && return $mount_ret _idmapped_mount $SCRATCH_DEV $SCRATCH_MNT _prepare_for_eio_shutdown $SCRATCH_DEV + return $mount_ret } # mount scratch device with given options and _fail if mount fails @@ -653,6 +654,7 @@ _test_mount() [ $mount_ret -ne 0 ] && return $mount_ret _idmapped_mount $TEST_DEV $TEST_DIR _prepare_for_eio_shutdown $TEST_DEV + return $mount_ret } _test_unmount() -- 2.50.1