[PATCH 4/4] generic/219: Fix test failure on 64k block size

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Skip this test on 64k, as 4k as taken as the default block size.

Signed-off-by: Anju T Sudhakar <anju@xxxxxxxxxxxxxxxxxx>
---
But I have a Query:
This test fails on ext4&xfs with 64k block size. Do we need to
rephrase this test to incorporate the 64k bs scenario as well?
If not we can skip this test.

 tests/generic/219 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/generic/219 b/tests/generic/219
index d3d257f1..d38fd033 100755
--- a/tests/generic/219
+++ b/tests/generic/219
@@ -79,6 +79,11 @@ test_accounting()
 
 # real QA test starts here
 
+# Skip this test on 64k block size scenario
+bsize=$(_get_block_size $SCRATCH_MNT)
+if [ $bsize -ge 4096 ];then
+	_notrun "Test assumes 4k as the default block size"
+fi
 _scratch_unmount 2>/dev/null
 _scratch_mkfs >> $seqres.full 2>&1
 _scratch_mount "-o usrquota,grpquota"
-- 
2.24.1




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux