]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: make a btrfs version of writeback error reporting test
authorJeff Layton <jlayton@redhat.com>
Fri, 16 Jun 2017 19:36:19 +0000 (15:36 -0400)
committerEryu Guan <eguan@redhat.com>
Tue, 20 Jun 2017 12:33:16 +0000 (20:33 +0800)
commit5d599421defe96b9c604d6e3f9fc23d81eb3b4d0
treebbd89ae78d0e3253f9daab0c3c65bff0bac26314
parentd6b986f3cb39d07dff7908c66b1561395053ed45
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>
tests/btrfs/146 [new file with mode: 0755]
tests/btrfs/146.out [new file with mode: 0644]
tests/btrfs/group