From 133fdfd9c5972e49a56579b0f143712d62c24e5c Mon Sep 17 00:00:00 2001 From: Allan Randall Date: Tue, 16 Jan 2007 02:58:21 +0000 Subject: [PATCH] Integrate dmapi suite 1 into xfsqa infrastructure Merge of master-melb:xfs-cmds:27924a by kenmcd. added IRIX to _supported_os --- 142 | 2 +- 143 | 2 +- 144 | 4 +- 145 | 2 +- 146 | 9 +- 146.out.irix | 324 +++++++++++++++++++++++++++++++++++++++ 146.out => 146.out.linux | 0 147 | 2 +- 148 | 2 +- 150 | 56 +++++++ 150.out | 5 + 151 | 97 ++++++++++++ 151.out | 22 +++ 152 | 50 ++++++ 152.out | 10 ++ 153 | 57 +++++++ 153.out | 8 + 154 | 44 ++++++ 154.out | 21 +++ 155 | 76 +++++++++ 155.out | 8 + 156 | 43 ++++++ 156.out | 1 + 157 | 45 ++++++ 157.out | 2 + 158 | 90 +++++++++++ 158.out | 6 + 159 | 57 +++++++ 159.out | 5 + 160 | 67 ++++++++ 160.out | 11 ++ 161 | 54 +++++++ 161.out | 12 ++ 162 | 73 +++++++++ 162.out | 12 ++ 163 | 58 +++++++ 163.out | 3 + common.config | 10 +- common.rc | 1 + group | 14 ++ 40 files changed, 1355 insertions(+), 10 deletions(-) create mode 100644 146.out.irix rename 146.out => 146.out.linux (100%) create mode 100755 150 create mode 100644 150.out create mode 100755 151 create mode 100644 151.out create mode 100755 152 create mode 100644 152.out create mode 100755 153 create mode 100644 153.out create mode 100755 154 create mode 100644 154.out create mode 100755 155 create mode 100644 155.out create mode 100755 156 create mode 100644 156.out create mode 100755 157 create mode 100644 157.out create mode 100755 158 create mode 100644 158.out create mode 100755 159 create mode 100644 159.out create mode 100755 160 create mode 100644 160.out create mode 100755 161 create mode 100644 161.out create mode 100755 162 create mode 100644 162.out create mode 100755 163 create mode 100644 163.out diff --git a/142 b/142 index b0630cdb..d793319b 100755 --- a/142 +++ b/142 @@ -30,7 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs -_supported_os Linux +_supported_os Linux IRIX _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 diff --git a/143 b/143 index 5e46795a..445dce42 100755 --- a/143 +++ b/143 @@ -30,7 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs -_supported_os Linux +_supported_os Linux IRIX _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 diff --git a/144 b/144 index 80d3c0e7..6f5f78ee 100755 --- a/144 +++ b/144 @@ -30,7 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs -_supported_os Linux +_supported_os Linux IRIX _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 @@ -39,7 +39,7 @@ _dmapi_scratch_mount mkdir -p $SCRATCH_MNT/dmapi # run DMAPI test using verbose output -${DMAPI_QASUITE2_DIR}src/test_fileattr -v $DMAPI_LS_TO_COPY_PATH $SCRATCH_MNT +${DMAPI_QASUITE2_DIR}src/test_fileattr -v $DMAPI_LS_TO_COPY_PATH $SCRATCH_MNT 2>&1 | $PERL_PROG -ne 's/\d+\sloops/NUM loops/g ; print;' status=0 exit diff --git a/145 b/145 index e228bff1..c0c3eccf 100755 --- a/145 +++ b/145 @@ -30,7 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs -_supported_os Linux +_supported_os Linux IRIX _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 diff --git a/146 b/146 index c833eaa3..3f054f9e 100755 --- a/146 +++ b/146 @@ -24,7 +24,9 @@ _cleanup() } _report_filter () { - perl -ne "s/Report: \"0x[0-f]+\" was written and \"0x[0-f]+\" was read at byte [0-9]+ million./Report: \"HEX\" was written and \"HEX\" was read at byte NUM million./g ; print" + $PERL_PROG -ne "s/Report: \"0x[0-f]+\" was written and \"0x[0-f]+\" was read at/Report: \"HEX\" was written and \"HEX\" was read at/g ; + s/byte [0-9]+ million./byte NUM million./g; + print" } # get standard environment, filters and checks @@ -34,7 +36,10 @@ _report_filter () { # real QA test starts here _supported_fs xfs -_supported_os Linux +_supported_os Linux IRIX + +# link correct .out file +_link_out_file $seq.out _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 diff --git a/146.out.irix b/146.out.irix new file mode 100644 index 00000000..827be545 --- /dev/null +++ b/146.out.irix @@ -0,0 +1,324 @@ +QA output created by 146 +Invisible read/write tests beginning... +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write + +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +..... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.......... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +......................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +.............................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +................................... +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +........................................ +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: time stamp unchanged by write +............................................. +Report: time stamp unchanged by read +Report: "HEX" was written and "HEX" was read at byte NUM million. +Report: "HEX" was written and "HEX" was read at 2147840000 bytes + (a bit over 2 gigabytes). + (errno subtests beginning...) + report on test for EACCES in no-right write: test successful + report on test for EACCES in SHARED write: test successful + report on test for success in EXCL write: test successful. + report on test for EBADF in write: test successful + report on test for EBADF in read: test successful + report on test for EBADF in write: test successful + report on test for EFAULT in write: test successful + report on test for EINVAL in (bad offset) write: test successful + report on test for EINVAL in (bad sid) write: test successful + report on test for EACCES in no-right read: test successful + report on test for success in SHARED read: test successful. + report on test for success in EXCL read: test successful. + report on test for EBADF in read: test successful + report on test for EFAULT in read: test successful + report on test for EINVAL in (bad offset) read: test successful + report on test for EINVAL in (bad sid) read: test successful + (errno subtests complete!) +Invisible read/write tests complete. diff --git a/146.out b/146.out.linux similarity index 100% rename from 146.out rename to 146.out.linux diff --git a/147 b/147 index bb378d7a..1909f142 100755 --- a/147 +++ b/147 @@ -30,7 +30,7 @@ _cleanup() # real QA test starts here _supported_fs xfs -_supported_os Linux +_supported_os Linux IRIX _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 diff --git a/148 b/148 index 928deca0..a2621c1e 100755 --- a/148 +++ b/148 @@ -77,7 +77,7 @@ else umount $SCRATCH_DEV fi clear="" -eval `xfs_db -r -c "sb 1" -c stack $SCRATCH_DEV | perl -ne ' +eval `xfs_db -r -c "sb 1" -c stack $SCRATCH_DEV | $PERL_PROG -ne ' if (/byte offset (\d+), length (\d+)/) { print "clear=", $1 / 512, "\n"; exit }'` diff --git a/150 b/150 new file mode 100755 index 00000000..83623b2e --- /dev/null +++ b/150 @@ -0,0 +1,56 @@ +#! /bin/sh +# FSQA Test No. 150 +# +# Set DM_EVENT_RENAME event on a DMAPI filesystem and verify it is set. +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +_filter_fs_handle() +{ + $SED_PROG -e "s/$DMAPI_FS_HANDLE/DMAPI_FS_HANDLE/g" +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +DMAPI_FS_HANDLE="`${DMAPI_QASUITE1_DIR}cmd/path_to_fshandle $SCRATCH_MNT`" + +${DMAPI_QASUITE1_DIR}cmd/get_eventlist $DMAPI_FS_HANDLE \ + | _filter_fs_handle + +${DMAPI_QASUITE1_DIR}cmd/set_eventlist $DMAPI_FS_HANDLE DM_EVENT_RENAME +echo "set_eventlist Returned: $?" + +${DMAPI_QASUITE1_DIR}cmd/get_eventlist $DMAPI_FS_HANDLE \ + | _filter_fs_handle + +status=0 +exit diff --git a/150.out b/150.out new file mode 100644 index 00000000..7600c8c2 --- /dev/null +++ b/150.out @@ -0,0 +1,5 @@ +QA output created by 150 +Events on object DMAPI_FS_HANDLE (0x0), nelemp 23: +set_eventlist Returned: 0 +Events on object DMAPI_FS_HANDLE (0x400), nelemp 23: +DM_EVENT_RENAME (10) diff --git a/151 b/151 new file mode 100755 index 00000000..0afeaaf5 --- /dev/null +++ b/151 @@ -0,0 +1,97 @@ +#! /bin/sh +# FSQA Test No. 151 +# +# Create three DMAPI sessions, +# verify they have been created, +# then distroy first session +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +_dm_create_session() +{ + eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` + echo "RET=$ret NEWSID=NUM" +} + +_filter_sid_list() +{ + $SED_PROG -e "s/sids=\"[0-9| ]*\"/sids=NUMS/" +} + +_check_sids() +{ + ${DMAPI_QASUITE1_DIR}../simple/dm_getall_sessions | grep "$@" > /dev/null + if [ $? -ne 0 ] ; then + echo "ERROR: SID(s) not created" + ${DMAPI_QASUITE1_DIR}../simple/dm_getall_sessions >>$seq.full + fi +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +echo "*** create 3 sessions" +_dm_create_session +sid1=$newsid +_dm_create_session +sid2=$newsid +_dm_create_session +sid3=$newsid + +echo "*** check 3 sessions exist" +_check_sids "$sid1 $sid2 $sid3" + +echo "*** destroy first session" +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $sid1 + +#should fail +echo "*** check first session no longer exists" +_check_sids "$sid1" + +#should still remain +echo "*** check last 2 session exist" +_check_sids "$sid2 $sid3" + +echo "*** query" +${DMAPI_QASUITE1_DIR}../simple/dm_query_session -s $sid2 + +echo "*** remove remaining sessions" +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $sid2 +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $sid3 + +echo "*** check second session no longer exists" +_check_sids "$sid2" + +echo "*** check third session no longer exists" +_check_sids "$sid3" + +status=0 +exit diff --git a/151.out b/151.out new file mode 100644 index 00000000..0ddec83b --- /dev/null +++ b/151.out @@ -0,0 +1,22 @@ +QA output created by 151 +*** create 3 sessions +RET=0 NEWSID=NUM +RET=0 NEWSID=NUM +RET=0 NEWSID=NUM +*** check 3 sessions exist +*** destroy first session +ret=0 +*** check first session no longer exists +ERROR: SID(s) not created +*** check last 2 session exist +*** query +ret=0 +rlen=6 +sessinfo=test1 +*** remove remaining sessions +ret=0 +ret=0 +*** check second session no longer exists +ERROR: SID(s) not created +*** check third session no longer exists +ERROR: SID(s) not created diff --git a/152 b/152 new file mode 100755 index 00000000..f92f6a3e --- /dev/null +++ b/152 @@ -0,0 +1,50 @@ +#! /bin/sh +# FSQA Test No. 152 +# +# Verify DMAPI functions +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +_filter_handles() +{ + $PERL_PROG -ne "s/[0-9|a-f]+\s+\(dm/DMAPI_HANDLE \(dm/g ; print" | + $PERL_PROG -ne "s/hash [0-9]+/hash HASH/g; print" +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +DMAPI_FS_HANDLE="`${DMAPI_QASUITE1_DIR}cmd/path_to_fshandle $SCRATCH_MNT`" + +${DMAPI_QASUITE1_DIR}cmd/dm_handle $SCRATCH_MNT | _filter_handles + +status=0 +exit diff --git a/152.out b/152.out new file mode 100644 index 00000000..abf6759d --- /dev/null +++ b/152.out @@ -0,0 +1,10 @@ +QA output created by 152 + han1: hash HASH value DMAPI_HANDLE (dm_path_to_handle) +fshan1: hash HASH value DMAPI_HANDLE (dm_path_to_fshandle + han2: hash HASH value DMAPI_HANDLE (dm_fd_to_handle) +fshan2: hash HASH value DMAPI_HANDLE (dm_handle_to_fshandle) +fsid DMAPI_HANDLE (dm_handle_to_fsid) +ino DMAPI_HANDLE (dm_handle_to_ino) +igen DMAPI_HANDLE (dm_handle_to_igen) + han3: hash HASH value DMAPI_HANDLE (dm_make_handle) +fshan3: hash HASH value DMAPI_HANDLE (dm_make_fshandle) diff --git a/153 b/153 new file mode 100755 index 00000000..d30f8527 --- /dev/null +++ b/153 @@ -0,0 +1,57 @@ +#! /bin/sh +# FSQA Test No. 153 +# +# Associate filesystem with a session by setting DMAPI DM_EVENT_RENAME +# disposition. +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +DMAPI_FS_HANDLE="`${DMAPI_QASUITE1_DIR}cmd/path_to_fshandle $SCRATCH_MNT`" + +echo "*** create DMAPI sessions" +eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` +sid1=$newsid +eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` +sid2=$newsid + +${DMAPI_QASUITE1_DIR}cmd/set_disp -s $sid1 $DMAPI_FS_HANDLE DM_EVENT_RENAME +${DMAPI_QASUITE1_DIR}cmd/getall_disp $sid1 | $PERL_PROG -ne "s/fshandle\s+[0-9|a-f]+/fshandle FS_HANDLE/; print" +${DMAPI_QASUITE1_DIR}cmd/getall_disp $sid2 + +echo "*** destroy DMAPI sessions" +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $sid1 +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $sid2 + +status=0 +exit diff --git a/153.out b/153.out new file mode 100644 index 00000000..89b088da --- /dev/null +++ b/153.out @@ -0,0 +1,8 @@ +QA output created by 153 +*** create DMAPI sessions +rlenp is 32 +fshandle FS_HANDLE dm_eventset_t 02000 +rlenp is 0 +*** destroy DMAPI sessions +ret=0 +ret=0 diff --git a/154 b/154 new file mode 100755 index 00000000..d1d9fe97 --- /dev/null +++ b/154 @@ -0,0 +1,44 @@ +#! /bin/sh +# FSQA Test No. 154 +# +# Get DMAPI filesystem handle +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +DMAPI_FS_HANDLE="`${DMAPI_QASUITE1_DIR}cmd/path_to_fshandle $SCRATCH_MNT`" + +${DMAPI_QASUITE1_DIR}cmd/get_config_events $DMAPI_FS_HANDLE + +status=0 +exit diff --git a/154.out b/154.out new file mode 100644 index 00000000..2b4b6634 --- /dev/null +++ b/154.out @@ -0,0 +1,21 @@ +QA output created by 154 +Events supported (0x3fffae), nelemp 23: +DM_EVENT_MOUNT (1) +DM_EVENT_PREUNMOUNT (2) +DM_EVENT_UNMOUNT (3) +DM_EVENT_CREATE (5) +DM_EVENT_POSTCREATE (7) +DM_EVENT_REMOVE (8) +DM_EVENT_POSTREMOVE (9) +DM_EVENT_RENAME (10) +DM_EVENT_POSTRENAME (11) +DM_EVENT_LINK (12) +DM_EVENT_POSTLINK (13) +DM_EVENT_SYMLINK (14) +DM_EVENT_POSTSYMLINK (15) +DM_EVENT_READ (16) +DM_EVENT_WRITE (17) +DM_EVENT_TRUNCATE (18) +DM_EVENT_ATTRIBUTE (19) +DM_EVENT_DESTROY (20) +DM_EVENT_NOSPACE (21) diff --git a/155 b/155 new file mode 100755 index 00000000..5a5968cd --- /dev/null +++ b/155 @@ -0,0 +1,76 @@ +#! /bin/sh +# FSQA Test No. 155 +# +# DMAPI event DM_EVENT_RENAME generation +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +DMAPI_FS_HANDLE="`${DMAPI_QASUITE1_DIR}cmd/path_to_fshandle $SCRATCH_MNT`" + +rm -f $SCRATCH_MNT/dmapi_test_file1 + +echo "*** create DMAPI session" +eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` +sid1=$newsid + +${DMAPI_QASUITE1_DIR}cmd/set_eventlist $DMAPI_FS_HANDLE DM_EVENT_RENAME +echo "set_eventlist Returned: $?" + +echo "*** setting DMAPI DM_EVENT_RENAME disposition." +${DMAPI_QASUITE1_DIR}cmd/set_disp -s $sid1 $DMAPI_FS_HANDLE DM_EVENT_RENAME + +echo "***creating file on dmapi filesystem" +touch $SCRATCH_MNT/dmapi_test_file + +echo "***renameing file on dmapi filesystem" +mv $SCRATCH_MNT/dmapi_test_file $SCRATCH_MNT/dmapi_test_file1 & +MV_PID=$! + +sleep 1 + +echo "***checking for dmapi event" +eval `${DMAPI_QASUITE1_DIR}cmd/get_events $sid1 \ + | $PERL_PROG -ne 's/new parent/new_parent/g; + s/old parent/old_parent/g; + s/new name/new_name/g; + s/old name/old_name/g; + s/\s+/\n/g; + print;'` + +${DMAPI_QASUITE1_DIR}cmd/respond_event $sid1 $token 1 0 + +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $sid1 + +status=0 +exit diff --git a/155.out b/155.out new file mode 100644 index 00000000..cd39b20d --- /dev/null +++ b/155.out @@ -0,0 +1,8 @@ +QA output created by 155 +*** create DMAPI session +set_eventlist Returned: 0 +*** setting DMAPI DM_EVENT_RENAME disposition. +***creating file on dmapi filesystem +***renameing file on dmapi filesystem +***checking for dmapi event +ret=0 diff --git a/156 b/156 new file mode 100755 index 00000000..f4d0cde1 --- /dev/null +++ b/156 @@ -0,0 +1,43 @@ +#! /bin/sh +# FSQA Test No. 156 +# +# DMAPI get directory attributes (simple check +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +${DMAPI_QASUITE1_DIR}cmd/get_dirattrs $SCRATCH_MNT > $seq.full +[ $? -ne 0 ] && echo "get_dirattrs failed - see $seq.full" + +status=0 +exit diff --git a/156.out b/156.out new file mode 100644 index 00000000..6d44eee7 --- /dev/null +++ b/156.out @@ -0,0 +1 @@ +QA output created by 156 diff --git a/157 b/157 new file mode 100755 index 00000000..ae3c6e7a --- /dev/null +++ b/157 @@ -0,0 +1,45 @@ +#! /bin/sh +# FSQA Test No. 157 +# +# get/set DMAPI attributes +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +touch $SCRATCH_MNT/dmapi_test +${DMAPI_QASUITE1_DIR}cmd/set_dmattr $SCRATCH_MNT/dmapi_test ATTR_NAME_1 ATTR_VALUE_1 +[ $? -ne 0 ] && echo "set_dmattr failed" +${DMAPI_QASUITE1_DIR}cmd/get_dmattr $SCRATCH_MNT/dmapi_test ATTR_NAME_1 + +status=0 +exit diff --git a/157.out b/157.out new file mode 100644 index 00000000..edfba029 --- /dev/null +++ b/157.out @@ -0,0 +1,2 @@ +QA output created by 157 +rlenp is 13, value is 'ATTR_VALUE_1' diff --git a/158 b/158 new file mode 100755 index 00000000..0f5bbe42 --- /dev/null +++ b/158 @@ -0,0 +1,90 @@ +#! /bin/sh +# FSQA Test No. 158 +# +# get/set file attributes +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +touch $SCRATCH_MNT/dmapi_test + +_get_file_attr() { + ${DMAPI_QASUITE1_DIR}cmd/get_fileattr $SCRATCH_MNT/dmapi_test | grep $1 +} + +_set_file_attr() { + ${DMAPI_QASUITE1_DIR}cmd/set_fileattr $@ +} + +#dt_atime +atime_before="`_get_file_attr dt_atime`" +_set_file_attr -a 05m $SCRATCH_MNT/dmapi_test +atime_after="`_get_file_attr dt_atime`" +[ "$atime_before" == "$atime_after" ] && echo "dt_atime not updated" + +#dt_mtime +mtime_before="`_get_file_attr dt_mtime`" +_set_file_attr -m 10m $SCRATCH_MNT/dmapi_test +mtime_after="`_get_file_attr dt_mtime`" +[ "$mtime_before" == "$mtime_after" ] && echo "mt_mtime not updated" + +#dt_ctime +ctime_before="`_get_file_attr dt_ctime`" +_set_file_attr -c 15m $SCRATCH_MNT/dmapi_test +ctime_after="`_get_file_attr dt_ctime`" +[ "$ctime_before" == "$ctime_after" ] && echo "dt_ctime not updated" + +#dt_dtime +dtime_before="`_get_file_attr dt_dtime`" +_set_file_attr -d 20m $SCRATCH_MNT/dmapi_test +dtime_after="`_get_file_attr dt_dtime`" +[ "$dtime_before" == "$dtime_after" ] && echo "dt_dtime not updated" + +# -M mode +_set_file_attr -M 744 $SCRATCH_MNT/dmapi_test +_get_file_attr dt_mode + +# -u uid +_set_file_attr -u 666 $SCRATCH_MNT/dmapi_test +_get_file_attr dt_uid + +# -g gid +_set_file_attr -g 666 $SCRATCH_MNT/dmapi_test +_get_file_attr dt_gid + +# -S size +_set_file_attr -S 1024 $SCRATCH_MNT/dmapi_test +_get_file_attr dt_size + +status=0 +exit diff --git a/158.out b/158.out new file mode 100644 index 00000000..0e312061 --- /dev/null +++ b/158.out @@ -0,0 +1,6 @@ +QA output created by 158 +dt_mode (type) S_IFREG +dt_mode (perm) 0744 +dt_uid 666 +dt_gid 666 +dt_size 1024 diff --git a/159 b/159 new file mode 100755 index 00000000..ec18ba56 --- /dev/null +++ b/159 @@ -0,0 +1,57 @@ +#! /bin/sh +# FSQA Test No. 159 +# +# Create DMAPI event and respond to it. +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +echo "***create session" +eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` + +echo "***create user event" +token="`${DMAPI_QASUITE1_DIR}cmd/create_userevent -s $newsid TEST_USER_EVENT | perl -ne 'if (/token ([0-9]+)/) { print $1; } '`" +[ $? -ne 0 ] && echo "failed to create user event" + +echo "***respond to user event" +${DMAPI_QASUITE1_DIR}cmd/respond_event $newsid $token 1 0 +[ $? -ne 0 ] && echo "1st respond_event failed." + +#already responded should fail +${DMAPI_QASUITE1_DIR}cmd/respond_event $newsid $token 1 0 2>/dev/null +[ $? -eq 0 ] && echo "2nd respond_event didn't fail." + +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $newsid + +status=0 +exit diff --git a/159.out b/159.out new file mode 100644 index 00000000..fd57dc0c --- /dev/null +++ b/159.out @@ -0,0 +1,5 @@ +QA output created by 159 +***create session +***create user event +***respond to user event +ret=0 diff --git a/160 b/160 new file mode 100755 index 00000000..56f777db --- /dev/null +++ b/160 @@ -0,0 +1,67 @@ +#! /bin/sh +# FSQA Test No. 160 +# +# Change and view DMAPI access rights. +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +touch $SCRATCH_MNT/dmapi_test + +echo "***create session" +eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` + +echo "***create user event" +token="`${DMAPI_QASUITE1_DIR}cmd/create_userevent -s $newsid ACCESS_RIGHT_EVENT | perl -ne 'if (/token ([0-9]+)/) { print $1; } '`" +[ $? -ne 0 ] && echo "failed to create user event" + +echo "*** query & up/downgrade right" +${DMAPI_QASUITE1_DIR}cmd/query_right -s $newsid $token $SCRATCH_MNT/dmapi_test + +${DMAPI_QASUITE1_DIR}cmd/request_right -s $newsid $token $SCRATCH_MNT/dmapi_test DM_RIGHT_SHARED +${DMAPI_QASUITE1_DIR}cmd/query_right -s $newsid $token $SCRATCH_MNT/dmapi_test + +${DMAPI_QASUITE1_DIR}cmd/upgrade_right -s $newsid $token $SCRATCH_MNT/dmapi_test +${DMAPI_QASUITE1_DIR}cmd/query_right -s $newsid $token $SCRATCH_MNT/dmapi_test + +${DMAPI_QASUITE1_DIR}cmd/downgrade_right -s $newsid $token $SCRATCH_MNT/dmapi_test +${DMAPI_QASUITE1_DIR}cmd/query_right -s $newsid $token $SCRATCH_MNT/dmapi_test + +echo "*** respond to event" +${DMAPI_QASUITE1_DIR}cmd/respond_event $newsid $token 1 0 + +echo "*** destroy session" +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $newsid + +status=0 +exit diff --git a/160.out b/160.out new file mode 100644 index 00000000..33e3ff64 --- /dev/null +++ b/160.out @@ -0,0 +1,11 @@ +QA output created by 160 +***create session +***create user event +*** query & up/downgrade right +right is DM_RIGHT_NULL +right is DM_RIGHT_SHARED +right is DM_RIGHT_EXCL +right is DM_RIGHT_SHARED +*** respond to event +*** destroy session +ret=0 diff --git a/161 b/161 new file mode 100755 index 00000000..a9f097f2 --- /dev/null +++ b/161 @@ -0,0 +1,54 @@ +#! /bin/sh +# FSQA Test No. 161 +# +# DMAPI function punch hole. Create 3Mb file and punch a hole from +# offset 1Mb to EOF +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +_filter_qa_file() +{ + sed -e "s#$qa_file#QA_FILE#" +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +qa_file=$SCRATCH_MNT/dmapi_hole_file + +dd if=/dev/zero bs=1024k count=3 of=$qa_file + +${DMAPI_QASUITE1_DIR}cmd/get_allocinfo $qa_file | _filter_qa_file +${DMAPI_QASUITE1_DIR}cmd/probe_hole -o 1048576 -l 0 $qa_file +${DMAPI_QASUITE1_DIR}cmd/get_allocinfo $qa_file | _filter_qa_file + +status=0 +exit diff --git a/161.out b/161.out new file mode 100644 index 00000000..54c99411 --- /dev/null +++ b/161.out @@ -0,0 +1,12 @@ +QA output created by 161 +3+0 records in +3+0 records out +QA_FILE: starting offset 0 + returned 0, nelemp 2 + 0: [0..6143]: resv + 1: [6144..18014398509481983]: hole +roffp is 1048576, rlenp is 0 +QA_FILE: starting offset 0 + returned 0, nelemp 2 + 0: [0..6143]: resv + 1: [6144..18014398509481983]: hole diff --git a/162 b/162 new file mode 100755 index 00000000..fe3dca9a --- /dev/null +++ b/162 @@ -0,0 +1,73 @@ +#! /bin/sh +# FSQA Test No. 162 +# +# Placing holds on objects +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + +qa_file=$SCRATCH_MNT/dmapi_hole_file +touch $qa_file + +echo "***create session" +eval `${DMAPI_QASUITE1_DIR}../simple/dm_create_session` + +echo "***create user event" +token="`${DMAPI_QASUITE1_DIR}cmd/create_userevent -s $newsid OBJECT_HOLD_EVENT | perl -ne 'if (/token ([0-9]+)/) { print $1; } '`" +[ $? -ne 0 ] && echo "failed to create user event" + +echo "***check hold" +${DMAPI_QASUITE1_DIR}cmd/obj_ref_query -s $newsid $token $qa_file +${DMAPI_QASUITE1_DIR}cmd/obj_ref_hold -s $newsid $token $qa_file +${DMAPI_QASUITE1_DIR}cmd/obj_ref_query -s $newsid $token $qa_file + +echo "***check holding an object thats already held" +${DMAPI_QASUITE1_DIR}cmd/obj_ref_hold -s $newsid $token $qa_file 2>/dev/null +[ $? -eq 0 ] && echo "obj_ref_hold should have failed" + +echo "***release object" +${DMAPI_QASUITE1_DIR}cmd/obj_ref_rele -s $newsid $token $qa_file +${DMAPI_QASUITE1_DIR}cmd/obj_ref_query -s $newsid $token $qa_file + +echo "***release object with no hold" +${DMAPI_QASUITE1_DIR}cmd/obj_ref_rele -s $newsid $token $qa_file 2>/dev/null +[ $? -eq 0 ] && echo "obj_ref_rele should have failed" + +echo "***respond to user event" +${DMAPI_QASUITE1_DIR}cmd/respond_event $newsid $token 1 0 +[ $? -ne 0 ] && echo "1st respond_event failed." + +${DMAPI_QASUITE1_DIR}../simple/dm_destroy_session -s $newsid + +status=0 +exit diff --git a/162.out b/162.out new file mode 100644 index 00000000..6d995978 --- /dev/null +++ b/162.out @@ -0,0 +1,12 @@ +QA output created by 162 +***create session +***create user event +***check hold +there is no hold +there is a hold +***check holding an object thats already held +***release object +there is no hold +***release object with no hold +***respond to user event +ret=0 diff --git a/163 b/163 new file mode 100755 index 00000000..30bad406 --- /dev/null +++ b/163 @@ -0,0 +1,58 @@ +#! /bin/sh +# FSQA Test No. 163 +# +# File descriptor to handle conversion +# +#----------------------------------------------------------------------- +# Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. +#----------------------------------------------------------------------- +# +# creator +owner=allanr@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + _cleanup_testdir +} + +_filter_paths() +{ + $SED_PROG -e "s#$qa_file#QA_FILE#g" \ + -e "s#$SCRATCH_MNT#SCRATCH_MNT#g" +} + +_filter_handles() +{ + $PERL_PROG -ne 's/handle [0-f]+/handle HANDLE/ ; print' +} + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.dmapi + +# real QA test starts here +_supported_fs xfs +_supported_os Linux IRIX + +_require_scratch +_scratch_mkfs_xfs >/dev/null 2>&1 +_dmapi_scratch_mount + + +qa_file=$SCRATCH_MNT/dmapi_hole_file +touch $qa_file + +${DMAPI_QASUITE1_DIR}cmd/fd_to_handle $SCRATCH_MNT | _filter_paths | _filter_handles +${DMAPI_QASUITE1_DIR}cmd/fd_to_handle $qa_file | _filter_paths | _filter_handles + +status=0 +exit diff --git a/163.out b/163.out new file mode 100644 index 00000000..2285d101 --- /dev/null +++ b/163.out @@ -0,0 +1,3 @@ +QA output created by 163 +handle HANDLE, path SCRATCH_MNT +handle HANDLE, path QA_FILE diff --git a/common.config b/common.config index 01bd9010..676271b7 100644 --- a/common.config +++ b/common.config @@ -524,7 +524,15 @@ known_hosts() [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb6 ;; - *) + howler) + [ -z "$MODULAR" ] && MODULAR=1 + EMAIL="allanr@sgi.com" + [ -z "$TEST_DIR" ] && TEST_DIR=/mnt/test + [ -z "$TEST_DEV" ] && TEST_DEV=/dev/sdb1 + [ -z "$SCRATCH_MNT" ] && SCRATCH_MNT=/mnt/scratch + [ -z "$SCRATCH_DEV" ] && SCRATCH_DEV=/dev/sdb2 + ;; + *) echo "Error: need to define parameters for host $HOST" exit 1 ;; diff --git a/common.rc b/common.rc index 7f13c27c..8657ed14 100644 --- a/common.rc +++ b/common.rc @@ -163,6 +163,7 @@ _mount_ops_filter() # not required for linux, but won't hurt echo $params | sed -e 's/[[:space:]]*-o[[:space:]]*/UnIqUe/1; s/[[:space:]]*-o[[:space:]]*/,/g; s/UnIqUe/ -o /1' \ + | sed -e 's/dmapi/dmi/' \ | $PERL_PROG -ne "s#mtpt=[^,|^\n|^\s]*#mtpt=$FS_ESCAPED\1\2#; print;" } diff --git a/group b/group index 361861b0..c5077424 100644 --- a/group +++ b/group @@ -229,3 +229,17 @@ pattern ajones@sgi.com 147 dmapi auto 148 repair auto 149 repair auto +150 dmapi auto +151 dmapi auto +152 dmapi auto +153 dmapi auto +154 dmapi auto +155 dmapi auto +156 dmapi auto +157 dmapi auto +158 dmapi auto +159 dmapi auto +160 dmapi auto +161 dmapi auto +162 dmapi auto +163 dmapi auto -- 2.47.3