From: Amir Goldstein <amir73il@gmail.com>
To: Eryu Guan <eguan@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
linux-unionfs@vger.kernel.org, fstests@vger.kernel.org
Subject: [PATCH v2 2/5] open_by_handle: make -h (help) a valid option
Date: Thu, 29 Mar 2018 15:06:47 +0300 [thread overview]
Message-ID: <1522325210-17900-3-git-send-email-amir73il@gmail.com> (raw)
In-Reply-To: <1522325210-17900-1-git-send-email-amir73il@gmail.com>
All this does is suppress the "illegal value" message.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
src/open_by_handle.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/open_by_handle.c b/src/open_by_handle.c
index 78f7ef7..7dfb395 100644
--- a/src/open_by_handle.c
+++ b/src/open_by_handle.c
@@ -27,7 +27,7 @@
/*
-usage: open_by_handle [-cludmrwapk] [<-i|-o> <handles_file>] <test_dir> [num_files]
+usage: open_by_handle [-cludmrwapkh] [<-i|-o> <handles_file>] <test_dir> [num_files]
Examples:
@@ -109,7 +109,7 @@ struct handle {
void usage(void)
{
- fprintf(stderr, "usage: open_by_handle [-cludmrwapk] [<-i|-o> <handles_file>] <test_dir> [num_files]\n");
+ fprintf(stderr, "usage: open_by_handle [-cludmrwapkh] [<-i|-o> <handles_file>] <test_dir> [num_files]\n");
fprintf(stderr, "\n");
fprintf(stderr, "open_by_handle -c <test_dir> [N] - create N test files under test_dir, try to get file handles and exit\n");
fprintf(stderr, "open_by_handle <test_dir> [N] - get file handles of test files, drop caches and try to open by handle\n");
@@ -149,7 +149,7 @@ int main(int argc, char **argv)
if (argc < 2)
usage();
- while ((c = getopt(argc, argv, "cludmrwapki:o:")) != -1) {
+ while ((c = getopt(argc, argv, "cludmrwapkhi:o:")) != -1) {
switch (c) {
case 'c':
create = 1;
--
2.7.4
next prev parent reply other threads:[~2018-03-29 12:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 12:06 [PATCH v2 0/5] Yet another overlayfs exportfs test Amir Goldstein
2018-03-29 12:06 ` [PATCH v2 1/5] overlay/[054,055]: Document the fix commit Amir Goldstein
2018-03-29 12:06 ` Amir Goldstein [this message]
2018-03-29 12:06 ` [PATCH v2 3/5] open_by_handle: add -n option to suppress drop caches Amir Goldstein
2018-03-29 12:06 ` [PATCH v2 4/5] open_by_handle: add -s option to sleep and keep files open by handle Amir Goldstein
2018-03-29 12:06 ` [PATCH v2 5/5] overlay: test decoding overlay file handles with warm/cold dentry cache Amir Goldstein
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=1522325210-17900-3-git-send-email-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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