]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: fix dumping of corrupt ext* filesystems
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Apr 2025 23:59:31 +0000 (16:59 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 10 Apr 2025 07:00:58 +0000 (15:00 +0800)
The parameters to _ext4_metadump are device, dumpfile, and compress
options.  This callsite got the arguments in the wrong order, which
causes fstests to compress all of /dev/sdX as /dev/sdX.zst which is not
what we want.

Cc: fstests@vger.kernel.org # v2022.05.01
Fixes: 9fb30a9500c169 ("common: capture qcow2 dumps of corrupt ext* filesystems")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index 16d627e1bdd4ca1c9bb0e8331c8305e5822fdc22..7c333f7f9ebeb42ab45ee704c7e811c4d8848a44 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -3496,7 +3496,7 @@ _check_generic_filesystem()
         case "$FSTYP" in
         ext*)
             local flatdev="$(basename "$device")"
-            _ext4_metadump "$seqres.$flatdev.check.qcow2" "$device" compress
+            _ext4_metadump "$device" "$seqres.$flatdev.check.qcow2" compress
             ;;
         esac
     fi