4 # get/set DMAPI attributes
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
31 # real QA test starts here
33 _supported_os Linux IRIX
36 _scratch_mkfs_xfs >/dev/null 2>&1
39 touch $SCRATCH_MNT/dmapi_test
40 ${DMAPI_QASUITE1_DIR}cmd/set_dmattr $SCRATCH_MNT/dmapi_test ATTR_NAME_1 ATTR_VALUE_1
41 [ $? -ne 0 ] && echo "set_dmattr failed"
42 ${DMAPI_QASUITE1_DIR}cmd/get_dmattr $SCRATCH_MNT/dmapi_test ATTR_NAME_1