summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/bcachefs/replication.ktest14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/bcachefs/replication.ktest b/tests/bcachefs/replication.ktest
index 7057fa7..569b984 100644
--- a/tests/bcachefs/replication.ktest
+++ b/tests/bcachefs/replication.ktest
@@ -629,3 +629,17 @@ test_replicas_gc()
bcachefs fsck /dev/sd[bcdef]
}
+
+# Fails
+test_replace_replica()
+{
+ bcachefs format --errors=panic --replicas=2 /dev/sd[bc]
+ mount -t bcachefs -o degraded /dev/sdb /mnt
+
+ bcachefs device add -f /mnt /dev/sdd
+ bcachefs data rereplicate /mnt
+ umount /mnt
+
+ mount -t bcachefs -o degraded /dev/sdd /mnt
+ umount /mnt
+}