[PATCH 1/1] xfstests: fix failing of xfs/191 with small test devices

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



Add a _require_fs_space and make the necessary size smaller.  It should work
the same with 400 MB instead of 4 GB, and it will have less issues on small
VMs.

Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx>
---
 tests/xfs/191-input-validation | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/xfs/191-input-validation b/tests/xfs/191-input-validation
index cff3efa9..5de55170 100755
--- a/tests/xfs/191-input-validation
+++ b/tests/xfs/191-input-validation
@@ -65,10 +65,12 @@ SCRATCH_LOGDEV=
 SCRATCH_RTDEV=
 
 # limit the image size of the filesystem being created to something small
-fssize=$((4 * 1024 * 1024 * 1024))
-logsize=$((4 * 1024 * 1024 * 100))
+fssize=$((400 * 1024 * 1024 ))
+logsize=$((40 * 1024 * 1024 ))
 fsimg=$TEST_DIR/$seq.img
 
+_require_fs_space $TEST_DIR $(( (fssize + (logsize*2))/1024 ))
+
 do_mkfs_pass()
 {
 	echo >> $seqres.full
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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