diff options
author | David Sterba <dsterba@suse.com> | 2024-03-19 19:12:07 +0100 |
---|---|---|
committer | Anand Jain <anand.jain@oracle.com> | 2024-03-24 13:32:00 +0800 |
commit | ac004a25238cc0da321cf3496fc0215a446e7284 (patch) | |
tree | f1957d69287479a30ab1bd7e28e72a86e448aa3b | |
parent | af82dc0ed2039df3116be239d95b0b17eea6a859 (diff) | |
download | xfstests-dev-ac004a25238cc0da321cf3496fc0215a446e7284.tar.gz |
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 <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rw-r--r-- | common/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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=$? ;; *) |