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>
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