]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/053: fix test failure when running with btrfs-progs v6.0+
authorFilipe Manana <fdmanana@suse.com>
Wed, 9 Nov 2022 16:44:57 +0000 (16:44 +0000)
committerZorro Lang <zlang@kernel.org>
Wed, 23 Nov 2022 03:55:03 +0000 (11:55 +0800)
commit0d044155ff7686710a18fa952f0d76559dbfed6d
tree84249526c1066770044dd98311288c91a7fc00cf
parent7e0d5f6a44368ffa269d91856994da6d93a4eb9b
btrfs/053: fix test failure when running with btrfs-progs v6.0+

In btrfs-progs v6.0 the --leafsize (-l) command line option was removed
from mkfs.btrfs, so btrfs/053 can fail with v6.0+ in case the scratch
device does not have a btrfs filesystem created before running the test,
in which case mounting the scratch device fails.

The change was introduced by the following btrfs-progs commit:

  f7a768d62498 ("btrfs-progs: mkfs: remove support for option --leafsize")

Change the test to use --nodesize (-n) instead, since it exists in both
old and new btrfs-progs versions. Also redirect mkfs output to the test's
log file and fail explicitly if mkfs failed.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/053