This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master in repository gfs2-utils.
The following commit(s) were added to refs/heads/master by this push: new 6114591 mkf.gfs2: Clarify when extended options are invalid 6114591 is described below
commit 61145913214489c32398603f3439c4c0194d5ce4 Author: Andrew Price anprice@redhat.com AuthorDate: Tue Jun 30 14:00:56 2020 +0100
mkf.gfs2: Clarify when extended options are invalid
Omitting the argument of '-o' can give a misleading error message:
$ mkfs.gfs2 -o -p lock_nolock /dev/foo Invalid option '-p'
so clarify that the -o arg is an invalid extended option.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/mkfs/main_mkfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c index 412d470..bb8762b 100644 --- a/gfs2/mkfs/main_mkfs.c +++ b/gfs2/mkfs/main_mkfs.c @@ -311,7 +311,8 @@ static void opt_parse_extended(char *str, struct mkfs_opts *opts) print_ext_opts(); exit(0); } else { - fprintf(stderr, _("Invalid option '%s'\n"), key); + fprintf(stderr, _("Invalid extended option (specified with -o): '%s'\n"), key); + print_ext_opts(); exit(-1); } }