From: Murphy Zhou Date: Tue, 4 Jun 2019 15:40:35 +0800 Subject: [LTP] [PATCH] lib/tst_test.c: set mount_device amd format_device of all_filesystems is set Message-ID: <20190604074035.4523-1-xzhou@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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 --- 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