Merge of master-melb:xfs-cmds:31032a by kenmcd.
Correctly detect if dmapi is present.
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
+. ./common.dmapi
. ./common.punch
# real QA test starts here
_require_scratch
+# test that we have DMAPI support
+_dmapi_scratch_mount
+unmount $SCRATCH_MNT > /dev/null 2>&1
+
# _test_punch args: blksize extsize_hint filesize "pp1 pp2 pp3" \
# "ps1 ps2 ps3" "pt1 pt2 pt3" "wp1 wp2" "ws1 ws2" \
# "w p p w p" resvsp
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
+. ./common.dmapi
. ./common.punch
# real QA test starts here
_require_scratch
+# test that we have DMAPI support
+_dmapi_scratch_mount
+unmount $SCRATCH_MNT > /dev/null 2>&1
+
# _test_punch args: blksize extsize_hint filesize "pp1 pp2 pp3" \
# "ps1 ps2 ps3" "pt1 pt2 pt3" "wp1 wp2" "ws1 ws2" \
# "w p p w p" resvsp
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
+. ./common.dmapi
# real QA test starts here
# Setup Filesystem
_require_scratch
+
+# test that we have DMAPI support
+_dmapi_scratch_mount
+unmount $SCRATCH_MNT > /dev/null 2>&1
+
_scratch_mkfs_xfs >/dev/null 2>&1 \
|| _fail "mkfs failed"