generic: test reporting of wb errors via syncfs
authorJeff Layton <jlayton@redhat.com>
Thu, 30 Apr 2020 11:59:02 +0000 (07:59 -0400)
committerEryu Guan <guaneryu@gmail.com>
Sun, 17 May 2020 15:41:32 +0000 (23:41 +0800)
commit2e21bf376e9c5d5d30fa332134532a0b5517c4ce
treef8f7ecae78796628f5aae204f26c9cbd2f36c590
parent280f79a824b98dcc42d34ea58c2112132c83ef73
generic: test reporting of wb errors via syncfs

Add a test for new syncfs error reporting behavior. When an inode fails
to be written back, ensure that a subsequent call to syncfs() will also
report an error.

Kernel with the following patches should pass the test:

  vfs: track per-sb writeback errors and report them to syncfs
  buffer: record blockdev write errors in super_block that it backs

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/484 [new file with mode: 0755]
tests/generic/484.out [new file with mode: 0644]
tests/generic/group