From: adilger Date: Wed, 20 Mar 2002 20:46:25 +0000 (+0000) Subject: Add "old_fs" helper function (takes same args as new_fs helper) to just X-Git-Tag: 0.4.2~515 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2bb140080a6549d67efb34a1ba90c385b73224eb;p=fs%2Flustre-release.git Add "old_fs" helper function (takes same args as new_fs helper) to just set up an existing filesystem instead of creating a new one. --- diff --git a/lustre/tests/common.sh b/lustre/tests/common.sh index c388c16..403873d 100644 --- 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