Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38f1f4
)
Add "old_fs" helper function (takes same args as new_fs helper) to just
author
adilger
<adilger>
Wed, 20 Mar 2002 20:46:25 +0000
(20:46 +0000)
committer
adilger
<adilger>
Wed, 20 Mar 2002 20:46:25 +0000
(20:46 +0000)
set up an existing filesystem instead of creating a new one.
lustre/tests/common.sh
patch
|
blob
|
history
diff --git
a/lustre/tests/common.sh
b/lustre/tests/common.sh
index
c388c16
..
403873d
100644
(file)
--- a/
lustre/tests/common.sh
+++ b/
lustre/tests/common.sh
@@
-33,6
+33,13
@@
new_fs () {
LOOPNUM=`expr ${LOOPNUM} + 1`
}
+old_fs () {
+ [ -e $2 ] || exit -1
+ LOOPDEV=${LOOP}${LOOPNUM}
+ losetup ${LOOPDEV} $2 1>&2 || exit -1
+ LOOPNUM=`expr ${LOOPNUM} + 1`
+}
+
setup() {
[ -c /dev/portals ] || mknod /dev/portals c 10 240