]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: add helper _scratch_shutdown_and_syncfs
authorAmir Goldstein <amir73il@gmail.com>
Mon, 9 Jun 2025 15:19:13 +0000 (17:19 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 20 Jun 2025 16:46:47 +0000 (00:46 +0800)
commit8cde30495eb5199182c492c13441f7cf7f07d62f
treef60f8fd3b756838b0d22f846c391e12cfd2c39e7
parentd0f634afb0e30a823b044ec49fb6ea0ad0588d1c
fstests: add helper _scratch_shutdown_and_syncfs

Test xfs/546 has to chain syncfs after shutdown and cannot
use the _scratch_shutdown helper, because after shutdown a fd
cannot be opened to execute syncfs on.

The xfs_io command of chaining syncfs after shutdown is rather
more complex to execute in the derived overlayfs test overlay/087.

Add a helper to abstract this complexity from test writers.
Add a _require statement to match.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
tests/overlay/087
tests/xfs/546