[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 05/70: mount: add -n and --no-mtab arguments
From: |
Samuel Thibault |
Subject: |
[hurd] 05/70: mount: add -n and --no-mtab arguments |
Date: |
Mon, 16 Sep 2013 07:41:34 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 0d3903e8d44b5441b3606e2540e79c5cb1651145
Author: Justus Winter <address@hidden>
Date: Fri Jun 28 18:46:03 2013 +0200
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'.
---
utils/mount.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/utils/mount.c b/utils/mount.c
index 8b059c2..ea30f7a 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;
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 33/70: Reserve RPC ID for proc_set_init_task, (continued)
- [hurd] 33/70: Reserve RPC ID for proc_set_init_task, Samuel Thibault, 2013/09/16
- [hurd] 06/70: mount: fix mount -oremount with one parameter, Samuel Thibault, 2013/09/16
- [hurd] 04/70: utils: escape arguments in remap.sh, Samuel Thibault, 2013/09/16
- [hurd] 30/70: umount: add a umount utility, Samuel Thibault, 2013/09/16
- [hurd] 32/70: Merge branch 'master-merge', Samuel Thibault, 2013/09/16
- [hurd] 28/70: libnetfs: implement file_get_translator_cntl, Samuel Thibault, 2013/09/16
- [hurd] 02/70: Fix polling pfinet tun for write, Samuel Thibault, 2013/09/16
- [hurd] 69/70: Large store support for ext2fs, Samuel Thibault, 2013/09/16
- [hurd] 01/70: config.make: Use more configure settings when building xkb-data, Samuel Thibault, 2013/09/16
- [hurd] 09/70: mount: ignore mounted filesystems if --all is given, Samuel Thibault, 2013/09/16
- [hurd] 05/70: mount: add -n and --no-mtab arguments,
Samuel Thibault <=
- [hurd] 29/70: libnetfs: handle dead-name notifications, Samuel Thibault, 2013/09/16
- [hurd] 16/70: Add configure checks for libdaemon, Samuel Thibault, 2013/09/16
- [hurd] 37/70: init: Mark all of inits children and init itself as important, Samuel Thibault, 2013/09/16
- [hurd] 57/70: libtrivfs: add fsys_get_children, Samuel Thibault, 2013/09/16
- [hurd] 61/70: libnetfs: add fsys_get_source, Samuel Thibault, 2013/09/16