All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] fallocate05: increase FALLOCATE_SIZE
@ 2019-11-18 16:08 Jan Stancek
  2019-11-18 16:18 ` Martin Doucha
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jan Stancek @ 2019-11-18 16:08 UTC (permalink / raw)
  To: ltp

write() returning ENOSPC doesn't guarantee that filesystem after
some internal book-keeping, flushing, finishing transactions, etc.
won't still find some extra space.

Increase FALLOCATE_SIZE to minimize chance of hitting sporadic
failures when that happens.

Thanks to Carlos Maiolino and Eric Sandeen for their comments
and suggestions.

Fixes #610
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/syscalls/fallocate/fallocate05.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/fallocate/fallocate05.c b/testcases/kernel/syscalls/fallocate/fallocate05.c
index 50c610c448ba..17034e5b11e7 100644
--- a/testcases/kernel/syscalls/fallocate/fallocate05.c
+++ b/testcases/kernel/syscalls/fallocate/fallocate05.c
@@ -17,7 +17,7 @@
 #include "lapi/fallocate.h"
 
 #define MNTPOINT "mntpoint"
-#define FALLOCATE_SIZE 8192
+#define FALLOCATE_SIZE (1024*1024)
 #define TESTED_FLAGS "fallocate(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)"
 
 static int fd;
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-19 10:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 16:08 [LTP] [PATCH] fallocate05: increase FALLOCATE_SIZE Jan Stancek
2019-11-18 16:18 ` Martin Doucha
2019-11-19  5:45   ` Li Wang
2019-11-18 16:19 ` Cyril Hrubis
2019-11-19  5:34 ` Li Wang
2019-11-19  8:13   ` Jan Stancek
2019-11-19  8:59     ` Li Wang
2019-11-19  9:47     ` Martin Doucha
2019-11-19 10:02       ` Jan Stancek

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.