diff mbox series

[V3,18/19] Fix generic/018 to work with 64k block size

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

Commit Message

Chandan Rajendra Sept. 12, 2018, 6:26 a.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

Patch

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