[LTP] [PATCH v2] syscalls/preadv2/preadv203: set mount_device flag
Murphy Zhou
jencce.kernel@gmail.com
Wed Jun 5 06:42:15 CEST 2019
Now the tests are running in MOUNTPOINT without it mounted.
Fails on ext2:
preadv203.c does not set mount_device, which makes BROK:
preadv203.c:122: BROK: preadv2() failed: EOPNOTSUPP
Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
---
testcases/kernel/syscalls/preadv2/preadv203.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/syscalls/preadv2/preadv203.c b/testcases/kernel/syscalls/preadv2/preadv203.c
index 810d1e8db..e4f68a51b 100644
--- a/testcases/kernel/syscalls/preadv2/preadv203.c
+++ b/testcases/kernel/syscalls/preadv2/preadv203.c
@@ -261,6 +261,7 @@ static struct tst_test test = {
.cleanup = cleanup,
.test_all = verify_preadv2,
.mntpoint = MNTPOINT,
+ .mount_device = 1,
.all_filesystems = 1,
.needs_tmpdir = 1,
.needs_root = 1,
--
2.21.0
More information about the ltp
mailing list