All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] xfstests: fix failing of xfs/191 with small test devices
@ 2017-03-15 16:33 Jan Tulak
  0 siblings, 0 replies; only message in thread
From: Jan Tulak @ 2017-03-15 16:33 UTC (permalink / raw)
  To: fstests; +Cc: Jan Tulak

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@redhat.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-15 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 16:33 [PATCH 1/1] xfstests: fix failing of xfs/191 with small test devices Jan Tulak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.