btrfs-progs: tests: Introduce misc-tests/008-leaf-crossing-stripes
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 23 Sep 2015 07:19:06 +0000 (15:19 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Oct 2015 09:48:24 +0000 (11:48 +0200)
commit9e0c8e148d5d7240e540f825546a434a24ac2660
treed814eebe037155d019f98e4900de807b9eb42a39
parent5f77daa6a1673b130a566130144c80ce86ed1d0d
btrfs-progs: tests: Introduce misc-tests/008-leaf-crossing-stripes

To check is btrfs-convert create bad filesystem with
leaf across stripes.

It is happened in progs version <=v4.1.2, and fixed by patch titled:
btrfs: convert: Avoid allocating metadata extent crossing stripe boundary
which was merged in v4.2.

Notice thar this testcase can not report error in old version of
btrfs-progs, because "btrfs check" can't check this type of error
in those version, but we have another testcase in fsck-tests, to
check is "btrfs check" support this check.

So, the above 2 testcase together can check leaf-crossing-stripes
bug in all versions.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
[renamed and other minor changes]
Signed-off-by: David Sterba <dsterba@suse.com>
tests/misc-tests/008-leaf-crossing-stripes/test.sh [new file with mode: 0755]