mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Allow the QA suite to mount the test file system if it is not already mounted.
This commit is contained in:
@@ -586,6 +586,17 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# if $TEST_DEV is not mounted, mount it now as XFS
|
||||
if [ -z "`_fs_type $TEST_DEV`" ]
|
||||
then
|
||||
# $TEST_DEV is not mounted
|
||||
if ! mount -t xfs $TEST_DEV $TEST_DIR
|
||||
then
|
||||
echo "common.rc: could not mount $TEST_DEV on $TEST_DIR"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "`_fs_type $TEST_DEV`" != "xfs" ]
|
||||
then
|
||||
echo "common.rc: Error: \$TEST_DEV ($TEST_DEV) is not a MOUNTED XFS filesystem"
|
||||
|
||||
Reference in New Issue
Block a user