Merge of xfs-cmds-melb:slinx:19518a by kenmcd.
_supported_os IRIX Linux
_require_realtime
_require_scratch
-_require_xfs_io
+_require_command /usr/sbin/xfs_io
_filter_scratch()
{
EMAIL="nathans@larry"
SCRATCH_MNT=/mnt/xfs0
SCRATCH_DEV=/dev/sdb5
- SCRATCH_RTDEV=/dev/sdc1
+ #SCRATCH_RTDEV=/dev/sdc1
SCRATCH_LOGDEV=/dev/sda11
TEST_DIR=/mnt/xfs1
TEST_DEV=/dev/sdc3
- TEST_RTDEV=/dev/sdb6
+ #TEST_RTDEV=/dev/sdb6
TEST_LOGDEV=/dev/sda9
TAPE_DEV=/dev/st0
RMT_TAPE_DEV=bruce:/dev/st0
_notrun "Realtime device required, skipped this test"
}
-# this test requires that a realtime subvolume is in use, and
-# that the kernel supports realtime as well.
+# this test requires that a specified command (executable) exists
#
-_require_xfs_io()
+_require_command()
{
- [ -x /usr/sbin/xfs_io ] || \
- _notrun "xfs_io utility required, skipped this test"
+ [ -x "$1" ] || _notrun "$1 utility required, skipped this test"
}
# this test requires that external log/realtime devices are not in use