[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 09/70: mount: ignore mounted filesystems if --all is given
From: |
Samuel Thibault |
Subject: |
[hurd] 09/70: mount: ignore mounted filesystems if --all is given |
Date: |
Mon, 16 Sep 2013 07:41:35 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit bf827fd801c76175d268b688f3bf9c757fa9e189
Author: Justus Winter <address@hidden>
Date: Fri Jul 5 17:13:29 2013 +0200
mount: ignore mounted filesystems if --all is given
Linux' mount utility ignores mounted filesystems if mount --all is
invoked. This patch makes our mount do the same.
utils/mount.c (main): Ignore mounted filesystems if --all is given.
---
utils/mount.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/utils/mount.c b/utils/mount.c
index 73a7539..77b2138 100644
--- a/utils/mount.c
+++ b/utils/mount.c
@@ -631,6 +631,15 @@ main (int argc, char **argv)
if (! match_options (&fs->mntent))
continue;
+
+ fsys_t mounted;
+ err = fs_fsys (fs, &mounted);
+ if (err)
+ error (0, err, "cannot determine if %s is already mounted",
+ fs->mntent.mnt_fsname);
+
+ if (mounted != MACH_PORT_NULL)
+ continue;
}
err |= do_mount (fs, remount);
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 42/70: trans: register symlink translators as important, (continued)
- [hurd] 42/70: trans: register symlink translators as important, Samuel Thibault, 2013/09/16
- [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 <=
- [hurd] 05/70: mount: add -n and --no-mtab arguments, Samuel Thibault, 2013/09/16
- [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