projects
/
xfstests-dev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a985c8b
)
Allow the QA suite to mount the test file system if it is not already mounted.
author
Nathan Straz
<nstraz@sgi.com>
Wed, 19 Sep 2001 22:08:37 +0000
(22:08 +0000)
committer
Nathan Straz
<nstraz@sgi.com>
Wed, 19 Sep 2001 22:08:37 +0000
(22:08 +0000)
common.rc
patch
|
blob
|
history
diff --git
a/common.rc
b/common.rc
index b7d0e563b0b6bea1bdb8db620b3c63350c894fe8..8f6d9aabf27ffc39a562a693b102e904e6aac8cc 100644
(file)
--- a/
common.rc
+++ b/
common.rc
@@
-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"