btrfs: make a btrfs version of writeback error reporting test

For btrfs, we can test how it reports data writeback errors on fsync by
implementing a suggestion from Chris Mason:

Build a filesystem with 2 devices that stripes the data across
both devices, but mirrors metadata across both. Then, make one
of the devices fail and test what it does.

[eguan: add comments about creating btrfs with "-d raid0 -m raid1"]

Cc: Chris Mason <clm@fb.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Jeff Layton
2017-06-16 15:36:19 -04:00
committed by Eryu Guan
parent d6b986f3cb
commit 5d599421de
3 changed files with 101 additions and 0 deletions
+1
View File
@@ -148,3 +148,4 @@
143 auto quick
144 auto quick send
145 auto quick send
146 auto quick