diff options
author | Roland McGrath <roland@gnu.org> | 2004-09-22 00:14:11 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-09-22 00:14:11 +0000 |
commit | c8103b46c984ea7c7d4f6835920ad8ec48496423 (patch) | |
tree | ea2db6f989a84f76e7c81b008be9ce81d6a4af57 /utils | |
parent | ae6de4b69179c93bd984fe441e1081cdf2563d13 (diff) |
2004-09-21 Alfred M. Szmidt <ams@kemisten.nu>
* mount.c (argp_opts): Enabled never-enabled options and added
long versions: --verbose/-v, --remount/--update/-u,
--writable/-w, --readonly/-r and --options/-o. Reported by
Ben Asselstine.
* mount.c (parse_opt): For -u, use "update" instead of the deprecated
"remount" argument.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mount.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/mount.c b/utils/mount.c index ea8b419b..8e593aac 100644 --- a/utils/mount.c +++ b/utils/mount.c @@ -1,6 +1,6 @@ /* Roughly Unix/Linux-compatible `mount' frontend for Hurd translators. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2004 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -48,6 +48,12 @@ static const struct argp_option argp_opts[] = {"timeout", 'T', "MILLISECONDS", 0, "Timeout for translator startup"}, {"format", 'p', "mount|fstab|translator", OPTION_ARG_OPTIONAL, "Output format for query (no filesystem arguments)"}, + {"options", 'o', "OPTIONS", 0, "A `,' seperated list of options"}, + {"readonly", 'r', 0, 0, "Never write to disk or allow opens for writing"}, + {"writable", 'w', 0, 0, "Use normal read/write behavior"}, + {"update", 'u', 0, 0, "Flush any meta-data cached in core"}, + {"remount", 0, 0, OPTION_ALIAS}, + {"verbose", 'v', 0, 0, "Give more detailed information"}, {0, 0} }; @@ -69,7 +75,7 @@ parse_opt (int key, char *arg, struct argp_state *state) break case 'r': ARGZ (add (&options, &options_len, "ro")); case 'w': ARGZ (add (&options, &options_len, "rw")); - case 'u': ARGZ (add (&options, &options_len, "remount")); + case 'u': ARGZ (add (&options, &options_len, "update")); case 'o': ARGZ (add_sep (&options, &options_len, arg, ',')); case 'v': ++verbose; break; #undef ARGZ |