xfs: make sure syncfs(2) passes back super_operations.sync_fs errors
authorDarrick J. Wong <djwong@kernel.org>
Tue, 19 Apr 2022 17:32:15 +0000 (10:32 -0700)
committerZorro Lang <zlang@kernel.org>
Tue, 26 Apr 2022 18:54:00 +0000 (02:54 +0800)
commit7f27a290aca8e45ec1f39b631cb6acf923917ca4
tree98df5db53d865ba3ec122419065577cee632fae4
parent1dac95cb0d6e97dfa336deab6d13c81aed531666
xfs: make sure syncfs(2) passes back super_operations.sync_fs errors

This is a regression test to make sure that nonzero error returns from
a filesystem's ->sync_fs implementation are actually passed back to
userspace when the call stack involves syncfs(2).

[zlang@ add '_supported_fs xfs' in case]

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/546 [new file with mode: 0755]
tests/xfs/546.out [new file with mode: 0644]