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
@@ -65,7 +65,7 @@ echo "Create the original files"
|
||||
blksz=65536
|
||||
nr=64
|
||||
filesize=$((blksz * nr))
|
||||
real_blksz=$(stat -f -c '%S' $testdir)
|
||||
real_blksz=$(get_block_size $testdir)
|
||||
internal_blks=$((filesize / real_blksz))
|
||||
$XFS_IO_PROG -c "cowextsize $((blksz * 16))" $testdir >> $seqres.full
|
||||
_weave_reflink_regular $blksz $nr $testdir/file1 $testdir/file3 >> $seqres.full
|
||||
|
||||
Reference in New Issue
Block a user