fix filter name - got to carried away with search and replace
authorTim Shimmin <tes@sgi.com>
Fri, 3 Jun 2005 06:07:55 +0000 (06:07 +0000)
committerTim Shimmin <tes@sgi.com>
Fri, 3 Jun 2005 06:07:55 +0000 (06:07 +0000)
for XFS_IO_PROG.
Merge of master-melb:xfs-cmds:22793a by kenmcd.

  fix filter name - got to carried away with search and replace
  for XFS_IO_PROG.

071

diff --git a/071 b/071
index da77c609cbf2b55eeb77ce6d9fd42eef6207bbea..c7037632658013f885031e83e277f3a2ff476f60 100755 (executable)
--- a/071
+++ b/071
@@ -86,13 +86,13 @@ write_block()
     echo "Writing $bytes bytes, offset is $words (direct=$direct)" | _filter_io
     echo "Writing $bytes bytes at $location $words (direct=$direct)" >>$seq.full
     $XFS_IO_PROG -c "pwrite $offset 512" $flags $SCRATCH_MNT/$seq \
-       2>&1 | _filter_off $offset | _filter_$XFS_IO_PROG | tee -a $seq.full
+       2>&1 | _filter_off $offset | _filter_xfs_io | tee -a $seq.full
     xfs_bmap -v $SCRATCH_MNT/$seq >>$seq.full
 
     echo "Reading $bytes bytes (direct=$direct)" | _filter_io
     echo "Reading $bytes bytes at $location (direct=$direct)" >>$seq.full
     $XFS_IO_PROG -c "pread $offset $bytes" $flags $SCRATCH_MNT/$seq \
-       2>&1 | _filter_off $offset | _filter_$XFS_IO_PROG | tee -a $seq.full
+       2>&1 | _filter_off $offset | _filter_xfs_io | tee -a $seq.full
 
     $XFS_IO_PROG -c "pread -v $offset $bytes" $flags $SCRATCH_MNT/$seq >>$seq.full
 
@@ -103,7 +103,7 @@ write_block()
 _supported_fs xfs
 _supported_os IRIX Linux
 
-[ -x $XFS_IO_PROG ] || _notrun "$XFS_IO_PROG executable not found"
+[ -n "$XFS_IO_PROG" ] || _notrun "xfs_io executable not found"
 
 _require_scratch
 _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs