From: David Sterba Date: Tue, 19 Mar 2024 18:12:07 +0000 (+0100) Subject: common/rc: use proper temporary file path in _repair_test_fs() X-Git-Tag: xfs-zoned-2024-08-22~215 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ac004a25238cc0da321cf3496fc0215a446e7284;p=users%2Fhch%2Fxfstests-dev.git common/rc: use proper temporary file path in _repair_test_fs() The path /tmp.repair would be on the system root that could not be writable, the temporary files are available at $tmp . Reviewed-by: Anand Jain Signed-off-by: David Sterba Signed-off-by: Anand Jain --- diff --git a/common/rc b/common/rc index 37d26bf21..ff2949bd0 100644 --- a/common/rc +++ b/common/rc @@ -1301,9 +1301,9 @@ _repair_test_fs() ;; btrfs) echo 'yes|$BTRFS_UTIL_PROG check --repair --force "$TEST_DEV"' > \ - /tmp.repair 2>&1 + $tmp.repair 2>&1 yes | $BTRFS_UTIL_PROG check --repair --force "$TEST_DEV" >> \ - /tmp.repair 2>&1 + $tmp.repair 2>&1 res=$? ;; *)