Merge of master-melb:xfs-cmds:27924a by kenmcd.
added IRIX to _supported_os
# real QA test starts here
_supported_fs xfs
-_supported_os Linux
+_supported_os Linux IRIX
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1
# real QA test starts here
_supported_fs xfs
-_supported_os Linux
+_supported_os Linux IRIX
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1
# real QA test starts here
_supported_fs xfs
-_supported_os Linux
+_supported_os Linux IRIX
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1
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
# real QA test starts here
_supported_fs xfs
-_supported_os Linux
+_supported_os Linux IRIX
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1
}
_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
# 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
+++ /dev/null
-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.
- (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 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 sid) read: test successful
- (errno subtests complete!)
-Invisible read/write tests complete.
--- /dev/null
+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.
--- /dev/null
+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.
+ (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 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 sid) read: test successful
+ (errno subtests complete!)
+Invisible read/write tests complete.
# real QA test starts here
_supported_fs xfs
-_supported_os Linux
+_supported_os Linux IRIX
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1
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
}'`
--- /dev/null
+#! /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
--- /dev/null
+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)
--- /dev/null
+#! /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
--- /dev/null
+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
--- /dev/null
+#! /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
--- /dev/null
+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)
--- /dev/null
+#! /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
--- /dev/null
+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
--- /dev/null
+#! /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
--- /dev/null
+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)
--- /dev/null
+#! /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
--- /dev/null
+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
--- /dev/null
+#! /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
--- /dev/null
+QA output created by 156
--- /dev/null
+#! /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
--- /dev/null
+QA output created by 157
+rlenp is 13, value is 'ATTR_VALUE_1'
--- /dev/null
+#! /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
--- /dev/null
+QA output created by 158
+dt_mode (type) S_IFREG
+dt_mode (perm) 0744
+dt_uid 666
+dt_gid 666
+dt_size 1024
--- /dev/null
+#! /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
--- /dev/null
+QA output created by 159
+***create session
+***create user event
+***respond to user event
+ret=0
--- /dev/null
+#! /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
--- /dev/null
+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
--- /dev/null
+#! /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
--- /dev/null
+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
--- /dev/null
+#! /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
--- /dev/null
+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
--- /dev/null
+#! /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
--- /dev/null
+QA output created by 163
+handle HANDLE, path SCRATCH_MNT
+handle HANDLE, path QA_FILE
[ -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
;;
# 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;"
}
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