btrfs-progs: tests: update features tested with btrfs-convert

We've changed mkfs defaults in 5.15 so it's not necessary to test the
features separately with convert. Instead use only defaults and add
other features that can be selected independently.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-04-19 16:50:22 +02:00
parent b2a1be83b8
commit 0ee736b1f0
5 changed files with 15 additions and 5 deletions

View File

@ -9,7 +9,9 @@ check_global_prereq mke2fs
setup_root_helper
prepare_test_dev
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
# Iterate over defaults and options that are not tied to hardware capabilities
# or number of devices
for feature in '' 'block-group-tree' ; do
convert_test ext2 "$feature" "ext2 4k nodesize" 4096 mke2fs -b 4096
convert_test ext2 "$feature" "ext2 8k nodesize" 8192 mke2fs -b 4096
convert_test ext2 "$feature" "ext2 16k nodesize" 16384 mke2fs -b 4096

View File

@ -9,7 +9,9 @@ check_global_prereq mke2fs
setup_root_helper
prepare_test_dev
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
# Iterate over defaults and options that are not tied to hardware capabilities
# or number of devices
for feature in '' 'block-group-tree' ; do
convert_test ext4 "$feature" "ext4 4k nodesize" 4096 mke2fs -t ext4 -b 4096
convert_test ext4 "$feature" "ext4 8k nodesize" 8192 mke2fs -t ext4 -b 4096
convert_test ext4 "$feature" "ext4 16k nodesize" 16384 mke2fs -t ext4 -b 4096

View File

@ -61,7 +61,9 @@ do_test() {
rm "$CHECKSUMTMP"
}
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
# Iterate over defaults and options that are not tied to hardware capabilities
# or number of devices
for feature in '' 'block-group-tree' ; do
do_test "$feature" "ext4 4k nodesize" 4096 mke2fs -t ext4 -b 4096
do_test "$feature" "ext4 8k nodesize" 8192 mke2fs -t ext4 -b 4096
do_test "$feature" "ext4 16k nodesize" 16384 mke2fs -t ext4 -b 4096

View File

@ -13,7 +13,9 @@ check_global_prereq mkreiserfs
setup_root_helper
prepare_test_dev
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
# Iterate over defaults and options that are not tied to hardware capabilities
# or number of devices
for feature in '' 'block-group-tree' ; do
convert_test reiserfs "$feature" "reiserfs 4k nodesize" 4096 mkreiserfs -b 4096
convert_test reiserfs "$feature" "reiserfs 8k nodesize" 8192 mkreiserfs -b 4096
convert_test reiserfs "$feature" "reiserfs 16k nodesize" 16384 mkreiserfs -b 4096

View File

@ -64,7 +64,9 @@ do_test() {
rm "$CHECKSUMTMP"
}
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
# Iterate over defaults and options that are not tied to hardware capabilities
# or number of devices
for feature in '' 'block-group-tree' ; do
do_test "$feature" "reiserfs 4k nodesize" 4096 mkreiserfs -b 4096
do_test "$feature" "reiserfs 8k nodesize" 8192 mkreiserfs -b 4096
do_test "$feature" "reiserfs 16k nodesize" 16384 mkreiserfs -b 4096