generic/018: to work with 64k block size

This commit replaces the hard coded bsize variable with the block size
obtained from the underlying filesystem.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Tested-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Chandan Rajendra
2018-09-24 20:49:41 +05:30
committed by Eryu Guan
parent d3a02a6e8a
commit 743bd85bfe
+1 -1
View File
@@ -42,7 +42,7 @@ fragfile=$SCRATCH_MNT/fragfile.$$
rm -f $fragfile
# Craft some fragmented files, defrag them, check the result.
bsize=4096
bsize=$(_get_file_block_size $SCRATCH_MNT)
echo "zero-length file:" | tee -a $seqres.full
touch $fragfile