xfs/194: unmount forced v4 fs during cleanup

Unmount the V4 filesystem we forcibly created to run this test during
test cleanup so that the post-test wrapup checks won't try to remount
the filesystem with different MOUNT_OPTIONS (specifically, the ones
that get screened out by _force_xfsv4_mount_options) and fail.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Darrick J. Wong
2019-07-25 11:04:13 -07:00
committed by Eryu Guan
parent 139f9a1630
commit ea7ab13c61
+5
View File
@@ -18,6 +18,11 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
cd /
# Unmount the V4 filesystem we forcibly created to run this test so that
# the post-test wrapup checks won't try to remount the filesystem with
# different MOUNT_OPTIONS (specifically, the ones that get screened out by
# _force_xfsv4_mount_options) and fail.
_scratch_unmount
rm -f $tmp.*
}