diff options
author | Sebastian Thorarensen <sebth@naju.se> | 2015-03-20 02:11:29 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-03-23 16:54:51 +0100 |
commit | 362936b03e61e9d68ef9c6620b1d1dd1fdbcf705 (patch) | |
tree | b90b32c727f8dcb72e6fbca601289fbf9e52ed90 | |
parent | af25a6402c3f0224881058f3f4957c34e19e3c74 (diff) |
btrfs-progs: Add nodesize test for btrfs-convert
convert-tests now test both 4096 and 16384 nodesizes.
Signed-off-by: Sebastian Thorarensen <sebth@naju.se>
Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r-- | tests/convert-tests.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index 6094287b..3d912f34 100644 --- a/tests/convert-tests.sh +++ b/tests/convert-tests.sh @@ -16,7 +16,8 @@ rm -f convert-tests-results.txt test(){ echo " [TEST] $1" - shift + nodesize=$2 + shift 2 echo "creating ext image with: $*" >> convert-tests-results.txt # 256MB is the smallest acceptable btrfs image. rm -f $here/test.img >> convert-tests-results.txt 2>&1 \ @@ -25,13 +26,17 @@ test(){ || _fail "could not create test image file" $* -F $here/test.img >> convert-tests-results.txt 2>&1 \ || _fail "filesystem create failed" - $here/btrfs-convert $here/test.img >> convert-tests-results.txt 2>&1 \ + $here/btrfs-convert -N "$nodesize" $here/test.img \ + >> convert-tests-results.txt 2>&1 \ || _fail "btrfs-convert failed" $here/btrfs check $here/test.img >> convert-tests-results.txt 2>&1 \ || _fail "btrfs check detected errors" } # btrfs-convert requires 4k blocksize. -test "ext2" mke2fs -b 4096 -test "ext3" mke2fs -j -b 4096 -test "ext4" mke2fs -t ext4 -b 4096 +test "ext2 4k nodesize" 4096 mke2fs -b 4096 +test "ext3 4k nodesize" 4096 mke2fs -j -b 4096 +test "ext4 4k nodesize" 4096 mke2fs -t ext4 -b 4096 +test "ext2 16k nodesize" 16384 mke2fs -b 4096 +test "ext3 16k nodesize" 16384 mke2fs -j -b 4096 +test "ext4 16k nodesize" 16384 mke2fs -t ext4 -b 4096 |