btrfs: test RAID5 device reappear and balance
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 30 Jun 2016 10:59:14 +0000 (18:59 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 15:12:50 +0000 (23:12 +0800)
commite78540a5661a2bff2f2f710fa65cda3fe2fe0dc1
treecd6376e00e48099e0890e6b9b34522fe3a1c3f61
parent610a748ae6063263427c6211ebb464f642c1bc71
btrfs: test RAID5 device reappear and balance

The test does the following:
Initialize a RAID5 with some data

Re-mount RAID5 degraded with _dev3_ missing and write data.
Save md5sum checkpoint1

Re-mount healthy RAID5

Let balance fix degraded blocks.
Save md5sum checkpoint2

Re-mount RAID1 degraded now with _dev1_ missing.
Save md5sum checkpoint3

Verify if all three md5sum matches

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/125 [new file with mode: 0755]
tests/btrfs/125.out [new file with mode: 0644]
tests/btrfs/group