mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
98a3b42b42
These have been scripted conversions then cleaned up by hand as there was no consistency to the formatting of the license headers in the common/ directory. Author information was also removed (it's in the git history) and so now the header format is consistently: ##/bin/bash # SPDX-License-Identifier: GPL-2.0(+) # Copyright (c) <date> <owner>. All Rights Reserved. # # <file description> Signed-off-by: Dave Chinner <dchinner@redhat.com>
32 lines
813 B
Plaintext
32 lines
813 B
Plaintext
##/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# 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_COMMON_DIR=$here/dmapi/src/common/
|
|
|
|
DMAPI_LS_TO_COPY_PATH=$DMAPI_QASUITE2_DIR/bindir/ls_to_copy
|
|
|
|
_dmapi_scratch_mount () {
|
|
if [ `echo "$MOUNT_OPTIONS" | grep -c dmapi` -gt 0 -o \
|
|
`echo "$MOUNT_OPTIONS" | grep -c dmi` -gt 0 ] ; then
|
|
#already got dmapi options set
|
|
_try_scratch_mount
|
|
dmapi_mount_result=$?
|
|
else
|
|
_try_scratch_mount "-o dmapi,mtpt=$SCRATCH_MNT"
|
|
dmapi_mount_result=$?
|
|
fi
|
|
|
|
if [ $dmapi_mount_result -ne 0 ] ; then
|
|
_notrun "Assuming DMAPI modules are not loaded"
|
|
fi
|
|
}
|
|
|
|
|