]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: Add a helper to run fsx on a given file
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Fri, 19 Sep 2025 06:47:56 +0000 (12:17 +0530)
committerZorro Lang <zlang@kernel.org>
Fri, 17 Oct 2025 20:31:08 +0000 (04:31 +0800)
commit1ba22a572c92ba3da0b4d6cf1a4dad1aebe8bc89
tree13d5aa0d78b7fde651a325e469e0b64a2e4f2dda
parenta346de1bb28b5022a514a86cd90f04f75f9c2abe
common/rc: Add a helper to run fsx on a given file

Currently run_fsx is hardcoded to run on a file in $TEST_DIR.
Add a helper _run_fsx_on_file so that we can run fsx on any
given file including in $SCRATCH_MNT. Also, refactor _run_fsx
to use this helper.

No functional change is intended in this patch.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc