From: Chandan Rajendra Date: Mon, 24 Sep 2018 15:19:41 +0000 (+0530) Subject: generic/018: to work with 64k block size X-Git-Tag: v2022.05.01~1401 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=743bd85bfe7644fcea66099000bb2a125613fe40;p=xfstests-dev.git 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 Tested-by: Zorro Lang Signed-off-by: Eryu Guan --- diff --git a/tests/generic/018 b/tests/generic/018 index 43610eff..d1386a7f 100755 --- a/tests/generic/018 +++ b/tests/generic/018 @@ -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