]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
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)
commit7ff687d857475134611fbba98b1ab00db025784d
tree9e147f321f1f3903fa8191cc3e881a3f291c16d2
parentad048ff62f507a305984f6c215e9a3f5dcfb9e56
common/rc: fix dumping of corrupt ext* filesystems

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