mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eryu Guan
parent
3ea91b080b
commit
fff869cb9c
+1
-1
@@ -54,7 +54,7 @@ rm -rf $testdir1
|
||||
mkdir $testdir1
|
||||
|
||||
echo "Create the original files"
|
||||
blksz="$(stat -f $testdir1 -c '%S')"
|
||||
blksz="$(get_block_size $testdir1)"
|
||||
blks=1000
|
||||
margin='7%'
|
||||
sz=$((blksz * blks))
|
||||
|
||||
Reference in New Issue
Block a user