2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
7 # get/set DMAPI attributes
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "exit \$status" 0 1 2 3 15
18 # get standard environment, filters and checks
23 # real QA test starts here
27 _scratch_mkfs_xfs >/dev/null 2>&1
30 touch $SCRATCH_MNT/dmapi_test
31 ${DMAPI_QASUITE1_DIR}cmd/set_dmattr $SCRATCH_MNT/dmapi_test ATTR_NAME_1 ATTR_VALUE_1
32 [ $? -ne 0 ] && echo "set_dmattr failed"
33 ${DMAPI_QASUITE1_DIR}cmd/get_dmattr $SCRATCH_MNT/dmapi_test ATTR_NAME_1