public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/042: add sleep before shutdown
@ 2019-07-03  1:31 Yang Xu
  2019-07-03  3:34 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Yang Xu @ 2019-07-03  1:31 UTC (permalink / raw)
  To: tytso; +Cc: fstests, Yang Xu

On some server machines, the memory was so big that we
don't have enough time to submit file.  After umoumt,
hexdump will report no such file or directory on ext4.
memory:128G
swap:8G
fail as below:
-------------------------------------------
  falloc -k
  wrote 65536/65536 bytes at offset 0
 -XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 +64 KiB, 16 ops; 0.0002 sec (282.805 MiB/sec and 72398.1900 ops/sec)
 +hexdump: /mnt/xfstests/scratch/042.mnt/file: No such file or directory
 +hexdump: all input file arguments failed
-------------------------------------------

I think we should reserve a short time, so umount will not lose file.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 tests/generic/042 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/generic/042 b/tests/generic/042
index 6c62eb63..e1453114 100755
--- a/tests/generic/042
+++ b/tests/generic/042
@@ -56,6 +56,10 @@ _crashtest()
 	# write, run the test command and shutdown the fs
 	$XFS_IO_PROG -f -c "pwrite -S 1 0 64k" -c "$cmd 60k 4k" $file | \
 		_filter_xfs_io
+
+	# keep file not lose when umount even on server machine
+	sleep 10
+
 	./src/godown -f $mnt
 
 	$UMOUNT_PROG $mnt
-- 
2.18.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] generic/042: add sleep before shutdown
@ 2019-06-26 23:51 Yang Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Yang Xu @ 2019-06-26 23:51 UTC (permalink / raw)
  To: fstests; +Cc: Yang Xu

On some server machines, the memory was so big that we
don't have enough time to submit file.  After umoumt,
hexdump will report no such file or directory on ext4.
memory:128G
swap:8G
fail as below:
-------------------------------------------
  falloc -k
  wrote 65536/65536 bytes at offset 0
 -XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 +64 KiB, 16 ops; 0.0002 sec (282.805 MiB/sec and 72398.1900 ops/sec)
 +hexdump: /mnt/xfstests/scratch/042.mnt/file: No such file or directory
 +hexdump: all input file arguments failed
-------------------------------------------

I think we should reserve a short time, so umount will not lose file.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 tests/generic/042 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/generic/042 b/tests/generic/042
index 6c62eb63..e1453114 100755
--- a/tests/generic/042
+++ b/tests/generic/042
@@ -56,6 +56,10 @@ _crashtest()
 	# write, run the test command and shutdown the fs
 	$XFS_IO_PROG -f -c "pwrite -S 1 0 64k" -c "$cmd 60k 4k" $file | \
 		_filter_xfs_io
+
+	# keep file not lose when umount even on server machine
+	sleep 10
+
 	./src/godown -f $mnt
 
 	$UMOUNT_PROG $mnt
-- 
2.18.1

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

end of thread, other threads:[~2019-07-03  8:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-03  1:31 [PATCH] generic/042: add sleep before shutdown Yang Xu
2019-07-03  3:34 ` Theodore Ts'o
2019-07-03  8:15   ` Yang Xu
  -- strict thread matches above, loose matches on Subject: below --
2019-06-26 23:51 Yang Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox