[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mount fixes
From: |
Alfred M. Szmidt |
Subject: |
mount fixes |
Date: |
Tue, 21 Sep 2004 23:20:10 +0200 |
Fixes a old bug that makes mount work with the common arguments.
It hasn't been tested heavily, but the simple stuff works.
It also has a small syntatic change that is self explanatory.
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 (parse_opt) <u>: Use "update" instead of the deprecated
"remount" argument.
--- mount.c 31 Jan 2001 00:45:32 +0100 1.2
+++ mount.c 21 Sep 2004 23:13:16 +0200
@@ -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_opt
{"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 ar
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mount fixes,
Alfred M. Szmidt <=