commit-hurd
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]