]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: use proper temporary file path in _repair_test_fs()
authorDavid Sterba <dsterba@suse.com>
Tue, 19 Mar 2024 18:12:07 +0000 (19:12 +0100)
committerAnand Jain <anand.jain@oracle.com>
Sun, 24 Mar 2024 05:32:00 +0000 (13:32 +0800)
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>
common/rc

index 37d26bf21b7c5f4b7b5dd740af807396872df4ce..ff2949bd05353d922ad7778a2d6629f8d59f8f71 100644 (file)
--- 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=$?
                ;;
        *)