diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-06-28 18:46:03 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-08-28 23:07:32 +0200 |
commit | 0d3903e8d44b5441b3606e2540e79c5cb1651145 (patch) | |
tree | 200d2d155793554f7c2d68edae173825c3442c5c /utils/mount.c | |
parent | 67dcc66dbbe940d2ead770a0bfe1c74411b002e7 (diff) |
mount: add -n and --no-mtab arguments
Add -n and --no-mtab arguments. As we do not write an mtab file, this
is a trivial patch that just ignores this argument to be more
compatible with Linux mount.
* utils/mount.c (argp_opts): Add -n and --no-mtab.
(parse_opt): Do nothing on 'n'.
Diffstat (limited to 'utils/mount.c')
-rw-r--r-- | utils/mount.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/mount.c b/utils/mount.c index 8b059c23..ea30f7af 100644 --- a/utils/mount.c +++ b/utils/mount.c @@ -54,6 +54,7 @@ static const struct argp_option argp_opts[] = {"update", 'u', 0, 0, "Flush any meta-data cached in core"}, {"remount", 0, 0, OPTION_ALIAS}, {"verbose", 'v', 0, 0, "Give more detailed information"}, + {"no-mtab", 'n', 0, 0, "Do not update /etc/mtab"}, {0, 0} }; @@ -110,6 +111,10 @@ parse_opt (int key, char *arg, struct argp_state *state) } break; + case 'n': + /* do nothing */ + break; + case ARGP_KEY_ARG: if (mountpoint == 0) /* One arg: mountpoint */ mountpoint = arg; |