diff mbox series

[V5,19/20] Fix generic/018 to work with 64k block size

Message ID 20180924151942.8220-20-chandan@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show
Series Fix tests to work on non-4k block sized fs instances | expand

Commit Message

Chandan Rajendra Sept. 24, 2018, 3:19 p.m. UTC
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>
 tests/generic/018 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/tests/generic/018 b/tests/generic/018
index 43610ef..d1386a7 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=$(_get_file_block_size $SCRATCH_MNT)
 echo "zero-length file:" | tee -a $seqres.full
 touch $fragfile