2006-12-19 02:55:36 +00:00
|
|
|
##/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# dmapi functions
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Commands relitive to dmapi qa
|
|
|
|
|
|
|
|
|
|
DMAPI_QASUITE1_DIR=$here/dmapi/src/suite1/
|
|
|
|
|
DMAPI_QASUITE2_DIR=$here/dmapi/src/suite2/
|
|
|
|
|
|
|
|
|
|
DMAPI_LS_TO_COPY_PATH=$DMAPI_QASUITE2_DIR/bindir/ls_to_copy
|
|
|
|
|
|
|
|
|
|
_dmapi_scratch_mount () {
|
2006-12-19 05:09:57 +00:00
|
|
|
if [ `lsmod | grep -c dmapi` -gt 0 ] ; then
|
|
|
|
|
if [ `echo "$MOUNT_OPTIONS" | grep -c dmapi` -gt 0 -o \
|
|
|
|
|
`echo "$MOUNT_OPTIONS" | grep -c dmi` -gt 0 ] ; then
|
|
|
|
|
#already got dmapi options set
|
|
|
|
|
_scratch_mount
|
|
|
|
|
else
|
|
|
|
|
_scratch_mount "-o dmapi,mtpt=$SCRATCH_MNT"
|
|
|
|
|
fi
|
2006-12-19 02:55:36 +00:00
|
|
|
else
|
2006-12-19 05:09:57 +00:00
|
|
|
_notrun "DMAPI modules not loaded"
|
2006-12-19 02:55:36 +00:00
|
|
|
fi
|
|
|
|
|
}
|