btrfs: test RAID1 device reappear and balance

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

  Re-mount RAID1 degraded with _dev1_ and write up to
  half of the FS capacity
  Save md5sum checkpoint1

  Re-mount healthy RAID1

  Let balance re-silver.
  Save md5sum checkpoint2

  Re-mount RAID1 degraded with _dev2_
  Save md5sum checkpoint3

  Verify if all three md5sum match

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Anand Jain
2016-06-30 18:58:21 +08:00
committed by Eryu Guan
parent 595c9c88b2
commit 610a748ae6
3 changed files with 174 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
QA output created by 124
Write data with degraded mount
Mount normal and balance
Mount degraded with the other dev