btrfs: add test for replacing a missing device
authorOmar Sandoval <osandov@fb.com>
Mon, 9 May 2016 00:58:06 +0000 (10:58 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 9 May 2016 00:58:06 +0000 (10:58 +1000)
commit29d3a3ea2c68d4af38ce2c6cd1b1cd2d6da497cf
tree666a83436dcdba8dd68a5a3a7a9a67a4a1e4c648
parent0a9b318f41aa8c6d9bf1b26be033a54b4a9b3af0
btrfs: add test for replacing a missing device

Now that _btrfs_get_profile_configs supports replace missing and the
kernel doesn't crash when replacing a missing RAID 5/6 device, test it.
Based on an earlier test from Wang Yanfeng.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/027 [new file with mode: 0755]
tests/btrfs/027.out [new file with mode: 0644]
tests/btrfs/group