]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test RAID1 device reappear and balance
authorAnand Jain <Anand.Jain@oracle.com>
Thu, 30 Jun 2016 10:58:21 +0000 (18:58 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 1 Jul 2016 15:12:50 +0000 (23:12 +0800)
commit610a748ae6063263427c6211ebb464f642c1bc71
tree8ddf278c18b0a1476185ebff3d050ae90126a3c4
parent595c9c88b2102c9711f6885b9ec95e9810a4df7b
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>
tests/btrfs/124 [new file with mode: 0755]
tests/btrfs/124.out [new file with mode: 0644]
tests/btrfs/group