From: Sandeep Patil <sspatil@google.com>
To: ltp@lists.linux.it
Subject: [LTP] [RFC][PATCH 2/2] access04: use the new tmpfs mount for EROFS testing
Date: Mon, 28 Aug 2017 17:11:26 -0700 [thread overview]
Message-ID: <20170829001126.142076-3-sspatil@google.com> (raw)
In-Reply-To: <20170829001126.142076-1-sspatil@google.com>
Use the 'tmpfs' read-only mount to test for EROFS return from
system call instead of finding a loop device and create, format,
mount a file system
Signed-off-by: Sandeep Patil <sspatil@google.com>
---
testcases/kernel/syscalls/access/access04.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/access/access04.c b/testcases/kernel/syscalls/access/access04.c
index dbb6d271a..b369a952f 100644
--- a/testcases/kernel/syscalls/access/access04.c
+++ b/testcases/kernel/syscalls/access/access04.c
@@ -125,9 +125,9 @@ static struct tst_test test = {
.needs_tmpdir = 1,
.needs_root = 1,
.forks_child = 1,
- .mount_device = 1,
- .mntpoint = MNT_POINT,
- .mnt_flags = MS_RDONLY,
+ .mount_tmpfs = 1,
+ .tmpfs_mntpoint = MNT_POINT,
+ .tmpfs_flags = MS_RDONLY,
.setup = setup,
.test = verify_access,
};
--
2.14.1.342.g6490525c54-goog
prev parent reply other threads:[~2017-08-29 0:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-29 0:11 [LTP] [RFC][PATCH 0/2] Add support to mount 'tmpfs' for EROFS testing Sandeep Patil
2017-08-29 0:11 ` [LTP] [RFC][PATCH 1/2] libltp: add support to mount tmpfs Sandeep Patil
2017-08-29 10:16 ` Cyril Hrubis
2017-08-30 11:27 ` Jan Stancek
2017-09-05 23:45 ` Sandeep Patil
2017-08-29 0:11 ` Sandeep Patil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170829001126.142076-3-sspatil@google.com \
--to=sspatil@google.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox