* [PATCH] debugfs: print missing argument in usage for open, filefrag and ls
@ 2013-12-07 7:11 Zheng Liu
2013-12-09 2:09 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Zheng Liu @ 2013-12-07 7:11 UTC (permalink / raw)
To: linux-ext4; +Cc: Theodore Ts'o, Zheng Liu
From: Zheng Liu <wenqing.lz@taobao.com>
This commit prints missing argument in usage for open, filefrag and ls
commands, which might help us to use debugfs tool.
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
---
debugfs/debugfs.c | 3 ++-
debugfs/filefrag.c | 2 +-
debugfs/ls.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 8c32eff..4dd5ba9 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -201,7 +201,8 @@ void do_open_filesys(int argc, char **argv)
return;
print_usage:
- fprintf(stderr, "%s: Usage: open [-s superblock] [-b blocksize] [-c] "
+ fprintf(stderr, "%s: Usage: open [-s superblock] [-b blocksize] "
+ "[d image_filename] [-c] [-i] [-f] [-e] [-D] "
#ifndef READ_ONLY
"[-w] "
#endif
diff --git a/debugfs/filefrag.c b/debugfs/filefrag.c
index e82d133..6219d7c 100644
--- a/debugfs/filefrag.c
+++ b/debugfs/filefrag.c
@@ -289,7 +289,7 @@ void do_filefrag(int argc, char *argv[])
if (argc > optind+1) {
print_usage:
- com_err(0, 0, "Usage: filefrag [-dv] file");
+ com_err(0, 0, "Usage: filefrag [-dvr] file");
return;
}
diff --git a/debugfs/ls.c b/debugfs/ls.c
index 69c7897..3603e46 100644
--- a/debugfs/ls.c
+++ b/debugfs/ls.c
@@ -167,7 +167,7 @@ void do_list_dir(int argc, char *argv[])
if (argc > optind+1) {
print_usage:
- com_err(0, 0, "Usage: ls [-l] [-d] [-p] file");
+ com_err(0, 0, "Usage: ls [-l] [-d] [-p] [-c] file");
return;
}
--
1.7.9.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: debugfs: print missing argument in usage for open, filefrag and ls
2013-12-07 7:11 [PATCH] debugfs: print missing argument in usage for open, filefrag and ls Zheng Liu
@ 2013-12-09 2:09 ` Theodore Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2013-12-09 2:09 UTC (permalink / raw)
To: Zheng Liu; +Cc: linux-ext4, Zheng Liu
I've commited the first two hunks of this patch to the maint branch,
and fixed up a missing hyphen:
> print_usage:
> - fprintf(stderr, "%s: Usage: open [-s superblock] [-b blocksize] [-c] "
> + fprintf(stderr, "%s: Usage: open [-s superblock] [-b blocksize] "
> + "[d image_filename] [-c] [-i] [-f] [-e] [-D] "
I'll add the final commit to the master/next branch, which is where
the ls -c option was added without updating the usage message.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-09 2:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-07 7:11 [PATCH] debugfs: print missing argument in usage for open, filefrag and ls Zheng Liu
2013-12-09 2:09 ` Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).