Use the built-in _test_mount function from xfstests so it will use
the correct mount options for xfstests. The script used a simple
umount-and-mount sequence, which caused a test failure on an XFS
filesystem that used both realtime and external log devices.
Signed-off-by: Michael L. Semon <mlsemon35@gmail.com>
Reviewed-by: Eric Sandeen <sandeen@rehat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
# unmount, remount, and check the timestamp
echo "Remounting to flush cache"
umount $TEST_DEV
-mount $TEST_DEV $TEST_DIR
+_test_mount
# Should yield -315593940 (prior to epoch)
echo "Testing for negative seconds since epoch"