public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/456: add check for fallocate flags
@ 2017-09-11  9:25 Xiao Yang
  2017-09-11 11:03 ` Amir Goldstein
  0 siblings, 1 reply; 6+ messages in thread
From: Xiao Yang @ 2017-09-11  9:25 UTC (permalink / raw)
  To: fstests; +Cc: Xiao Yang

On RHEL6.9GA, this case could not emulate a crash and passed due
to unsupported collapse_range and zero_range instead of no bug.

We added check for fallocate flags to avoid confusion.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 tests/generic/456 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/generic/456 b/tests/generic/456
index 8debd3f..b72acea 100755
--- a/tests/generic/456
+++ b/tests/generic/456
@@ -67,11 +67,16 @@ write 0x3e5ec 0x1a14 0x21446
 zero_range 0x20fac 0x6d9c 0x40000 keep_size
 mapwrite 0x216ad 0x274f 0x40000
 EOF
-run_check $here/ltp/fsx -d --replay-ops $fsxops $SCRATCH_MNT/testfile
+touch $tmp.dupops
+run_check $here/ltp/fsx -d --replay-ops $fsxops --record-ops=$tmp.dupops $SCRATCH_MNT/testfile
 
 _flakey_drop_and_remount
 _unmount_flakey
 _cleanup_flakey
+
+ops_name=$(awk '/skip/ {printf "%s ", $2}' $tmp.dupops)
+[ -n "$ops_name" ] && _notrun "fallocate does not support $ops_name"
+
 _check_scratch_fs
 
 echo "Silence is golden"
-- 
1.8.3.1




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

end of thread, other threads:[~2017-09-12  5:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-11  9:25 [PATCH] generic/456: add check for fallocate flags Xiao Yang
2017-09-11 11:03 ` Amir Goldstein
2017-09-12  2:38   ` Xiao Yang
2017-09-12  4:12     ` Eryu Guan
2017-09-12  4:46       ` Xiao Yang
2017-09-12  5:00         ` Amir Goldstein

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