xfs/194: unmount forced v4 fs during cleanup
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 25 Jul 2019 18:04:13 +0000 (11:04 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 28 Jul 2019 12:04:50 +0000 (20:04 +0800)
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>
tests/xfs/194

index 3e186528fecd4d41f5eea1e5ae64db4f4cf3b3d1..9001a14604209263668cd5a93602da9bfca3e92a 100755 (executable)
@@ -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.*
 }