[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 69/87: procfs: do not test whether /hurd/mtab exists
From: |
Samuel Thibault |
Subject: |
[hurd] 69/87: procfs: do not test whether /hurd/mtab exists |
Date: |
Sun, 09 Nov 2014 11:05:05 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 1fb3542ef83f01e913d9944b093de8d5c178e5d7
Author: Justus Winter <address@hidden>
Date: Fri Sep 19 08:18:33 2014 +0200
procfs: do not test whether /hurd/mtab exists
Now that procfs is merged into the Hurd repository we can just assume
that the mtab translator exists.
* procfs/rootdir.c (rootdir_mounts_exists): Drop function.
(rootdir_entries): Adjust accordingly.
---
procfs/rootdir.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index f92e73d..81e36f7 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -463,15 +463,6 @@ rootdir_mounts_get_translator (void *hook, char **argz,
size_t *argz_len)
return 0;
}
-static int
-rootdir_mounts_exists (void *dir_hook, const void *entry_hook)
-{
- static int translator_exists = -1;
- if (translator_exists == -1)
- translator_exists = access (_HURD_MTAB, F_OK|X_OK) == 0;
- return translator_exists;
-}
-
static error_t
rootdir_gc_slabinfo (void *hook, char **contents, ssize_t *contents_len)
{
@@ -674,7 +665,6 @@ static const struct procfs_dir_entry rootdir_entries[] = {
},
.ops = {
.make_node = rootdir_mounts_make_node,
- .exists = rootdir_mounts_exists,
}
},
{
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 82/87: Fix dead name notification in static binaries, (continued)
- [hurd] 82/87: Fix dead name notification in static binaries, Samuel Thibault, 2014/11/09
- [hurd] 68/87: procfs: implement /proc/filesystems, Samuel Thibault, 2014/11/09
- [hurd] 71/87: procfs: reorganize rootdir.c, Samuel Thibault, 2014/11/09
- [hurd] 78/87: Fix proc_getprocinfo calls, Samuel Thibault, 2014/11/09
- [hurd] 80/87: Fix actual procinfo_t type, Samuel Thibault, 2014/11/09
- [hurd] 83/87: Use a mere weak attribute instead of a weak alias, Samuel Thibault, 2014/11/09
- [hurd] 17/87: include: use unsigned literal in combination with binary not, Samuel Thibault, 2014/11/09
- [hurd] 79/87: Fix proc_getprocinfo calls, Samuel Thibault, 2014/11/09
- [hurd] 20/87: libdiskfs: avoid implicit integer conversion, Samuel Thibault, 2014/11/09
- [hurd] 67/87: procfs: implement /proc/N/maps, Samuel Thibault, 2014/11/09
- [hurd] 69/87: procfs: do not test whether /hurd/mtab exists,
Samuel Thibault <=
- [hurd] 16/87: libnetfs: fix memory leak, Samuel Thibault, 2014/11/09
- [hurd] 13/87: Fix buffer allocation on io_read, Samuel Thibault, 2014/11/09
- [hurd] 77/87: pfinet: fix path in comment, Samuel Thibault, 2014/11/09
- [hurd] 76/87: libports: lock-less reference counting for port_info objects, Samuel Thibault, 2014/11/09
- [hurd] 81/87: Fix unlocking translator list, Samuel Thibault, 2014/11/09
- [hurd] 63/87: Update NEWS file, Samuel Thibault, 2014/11/09
- [hurd] 09/87: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/11/09
- [hurd] 85/87: mach-defpager: use protected payloads for object lookups, Samuel Thibault, 2014/11/09
- [hurd] 87/87: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/11/09
- [hurd] 12/87: build: Remove checks for 'getgrouplist' and 'uselocale'., Samuel Thibault, 2014/11/09