aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-03-29 15:06:47 +0300
committerEryu Guan <guaneryu@gmail.com>2018-03-29 21:07:20 +0800
commitfbc0f6913e444fbbeb8f71360dbd73028595b675 (patch)
treec0cfd1c1562752f45e7c3ce34c0a5cc9e7709c76
parentd75c76f63d430792bed5fa21bdc7f90693c239b7 (diff)
downloadxfstests-fbc0f6913e444fbbeb8f71360dbd73028595b675.tar.gz
open_by_handle: make -h (help) a valid option
All this does is suppress the "illegal value" message. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r--src/open_by_handle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/open_by_handle.c b/src/open_by_handle.c
index 78f7ef756e..7dfb395bd7 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;