public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] lib/tst_test.c: set mount_device amd format_device of all_filesystems is set
@ 2019-06-04  7:40 Murphy Zhou
  2019-06-04  8:09 ` Xiao Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Murphy Zhou @ 2019-06-04  7:40 UTC (permalink / raw)
  To: ltp

preadv203.c does not set mount_device, which makes BROK:
  preadv203.c:122: BROK: preadv2() failed: EOPNOTSUPP

Fixing this by format and mount device if all_filesystems is set in library.

Signed-off-by: Murphy Zhou <xzhou@redhat.com>
---
 lib/tst_test.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/tst_test.c b/lib/tst_test.c
index 95f389d2e..61dba793e 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -808,8 +808,11 @@ static void do_setup(int argc, char *argv[])
 		tst_test->format_device = 1;
 	}
 
-	if (tst_test->all_filesystems)
+	if (tst_test->all_filesystems) {
 		tst_test->needs_device = 1;
+		tst_test->mount_device = 1;
+		tst_test->format_device = 1;
+	}
 
 	setup_ipc();
 
-- 
2.21.0


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

end of thread, other threads:[~2019-06-05 14:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-04  7:40 [LTP] [PATCH] lib/tst_test.c: set mount_device amd format_device of all_filesystems is set Murphy Zhou
2019-06-04  8:09 ` Xiao Yang
2019-06-04  8:23   ` Murphy Zhou
2019-06-05  4:42     ` [LTP] [PATCH v2] syscalls/preadv2/preadv203: set mount_device flag Murphy Zhou
2019-06-05  5:19       ` Xiao Yang
2019-06-05  5:27         ` Murphy Zhou
2019-06-05  5:33         ` [LTP] [PATCH v3] " Murphy Zhou
2019-06-05  5:55           ` Xiao Yang
2019-06-05 14:06           ` Cyril Hrubis

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