]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add test for seeing unseen fsync errors on newly open files
authorJeff Layton <jlayton@redhat.com>
Wed, 9 May 2018 14:10:58 +0000 (10:10 -0400)
committerEryu Guan <guaneryu@gmail.com>
Sat, 12 May 2018 16:28:35 +0000 (00:28 +0800)
commitbb8de58ca1d00ffac29c63ad783a3b18be94b34b
tree8ce01834e78e160d758c4c1b1bee8056c21eb323
parent22a147a1ad7bafa645250def672df0047e8c00df
btrfs: add test for seeing unseen fsync errors on newly open files

This adds a regression test for the following kernel patch:

    b4678df184b3 ("errseq: Always report a writeback error once")

This is motivated by some rather odd behavior done by the PostgreSQL
project. The main database writers will offload the fsync calls to a
separate process, which can open files after a writeback error has
already occurred.

This used to work with older kernels that reported the error to only
one fd, but with the errseq_t changes we lost the ability to see
errors that occurred before the open. The above patch restores that
behavior.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/160 [new file with mode: 0755]
tests/btrfs/160.out [new file with mode: 0644]
tests/btrfs/group