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
+1 -1
View File
@@ -60,7 +60,7 @@ testdir2=$SCRATCH_MNT/test-$seq
mkdir $testdir2
echo "Create the original files"
blksz="$(stat -f $testdir1 -c '%S')"
blksz="$(get_block_size $testdir1)"
blks=1000
margin='7%'
sz=$((blksz * blks))