From c8103b46c984ea7c7d4f6835920ad8ec48496423 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 22 Sep 2004 00:14:11 +0000 Subject: 2004-09-21 Alfred M. Szmidt * 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. --- utils/mount.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'utils/mount.c') 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 -- cgit v1.2.3