fstests: use get_block_size helper

Don't open code grabbing the block size; just use the helper.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2016-09-29 19:23:34 -07:00
committed by Eryu Guan
parent 3ea91b080b
commit fff869cb9c
69 changed files with 70 additions and 70 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ _scratch_mkfs >/dev/null 2>&1
_scratch_mount >> $seqres.full
testdir=$SCRATCH_MNT/test-$seq
blksz="$(stat -f $SCRATCH_MNT -c '%S')"
blksz="$(get_block_size $SCRATCH_MNT)"
umount $SCRATCH_MNT
@@ -72,7 +72,7 @@ xfs_info $SCRATCH_MNT >> $seqres.full
echo "Create the original file blocks"
mkdir $testdir
blksz="$(stat -f $testdir -c '%S')"
blksz="$(get_block_size $testdir)"
$XFS_IO_PROG -f -c "falloc 0 $((nr_blks * blksz))" $testdir/file1 >> $seqres.full
echo "Check extent count"