mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
check for dmapi module before running dmapi tests
Merge of master-melb:xfs-cmds:27774a by kenmcd. check for dmapi module before running dmapi tests
This commit is contained in:
+9
-5
@@ -13,11 +13,15 @@ DMAPI_QASUITE2_DIR=$here/dmapi/src/suite2/
|
|||||||
DMAPI_LS_TO_COPY_PATH=$DMAPI_QASUITE2_DIR/bindir/ls_to_copy
|
DMAPI_LS_TO_COPY_PATH=$DMAPI_QASUITE2_DIR/bindir/ls_to_copy
|
||||||
|
|
||||||
_dmapi_scratch_mount () {
|
_dmapi_scratch_mount () {
|
||||||
if [ `echo "$MOUNT_OPTIONS" | grep -c dmapi` -gt 0 -o \
|
if [ `lsmod | grep -c dmapi` -gt 0 ] ; then
|
||||||
`echo "$MOUNT_OPTIONS" | grep -c dmi` -gt 0 ] ; then
|
if [ `echo "$MOUNT_OPTIONS" | grep -c dmapi` -gt 0 -o \
|
||||||
#already got dmapi options set
|
`echo "$MOUNT_OPTIONS" | grep -c dmi` -gt 0 ] ; then
|
||||||
_scratch_mount
|
#already got dmapi options set
|
||||||
|
_scratch_mount
|
||||||
|
else
|
||||||
|
_scratch_mount "-o dmapi,mtpt=$SCRATCH_MNT"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_scratch_mount "-o dmapi,mtpt=$SCRATCH_MNT"
|
_notrun "DMAPI modules not loaded"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user