Fix test 190 to work file filesystems with bsize other then 4096.
authorPeter Leckie <pleckie@sgi.com>
Tue, 26 Aug 2008 16:11:33 +0000 (16:11 +0000)
committerPeter Leckie <pleckie@sgi.com>
Tue, 26 Aug 2008 16:11:33 +0000 (16:11 +0000)
Merge of master-melb:xfs-cmds:31968a by kenmcd.

  Fix test 190 to work file filesystems with bsize other then 4096.

190

diff --git a/190 b/190
index 62cec9a926c9274bb2fdfc928b578e10cbf37c6a..8f8558533c2544175852a60248af9ee4fa725560 100755 (executable)
--- a/190
+++ b/190
@@ -20,7 +20,6 @@ holes="4096:4096 303104:4096 1048576:512 1051648:8192 1065984:8192 1085440:7168"
 filesize=10
 #Name of file to perform the test on
 filename=test-190
-fsblocksize=4096
 
 seq=`basename $0`
 echo "QA output created by $seq"
@@ -41,7 +40,7 @@ _supported_os Linux
 _require_scratch
 _scratch_mkfs_xfs >/dev/null 2>&1
 _scratch_mount
-
+fsblocksize=`xfs_info $SCRATCH_MNT|sed 's/=/ /g'|awk '/^data / { print $3 }'`
 
 dd if=/dev/zero of=$SCRATCH_MNT/$filename bs=1024k count=10 >> $seq.full 2>&1