[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] procfs: do not test whether /hurd/mtab exists
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 4/7] procfs: do not test whether /hurd/mtab exists |
Date: |
Mon, 29 Sep 2014 01:21:55 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 22 Sep 2014 11:38:41 +0200, a écrit :
> Now that procfs is merged into the Hurd repository we can just assume
> that the mtab translator exists.
Ack
> * 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,
> }
> },
> {
> --
> 2.1.0
>
--
Samuel
/*
* [...] Note that 120 sec is defined in the protocol as the maximum
* possible RTT. I guess we'll have to use something other than TCP
* to talk to the University of Mars.
* PAWS allows us longer timeouts and large windows, so once implemented
* ftp to mars will work nicely.
*/
(from /usr/src/linux/net/inet/tcp.c, concerning RTT [retransmission timeout])
- [PATCH 1/6] procfs: implement /proc/N/mounts, (continued)
- [PATCH 1/6] procfs: implement /proc/N/mounts, Justus Winter, 2014/09/21
- [PATCH 4/6] procfs: generalize the translator linkage code, Justus Winter, 2014/09/21
- Re: [PATCH 4/6] procfs: generalize the translator linkage code, Justus Winter, 2014/09/21
- [PATCH 1/7] procfs: implement /proc/N/maps, Justus Winter, 2014/09/22
- [PATCH 3/7] procfs: implement /proc/N/mounts, Justus Winter, 2014/09/22
- Re: [PATCH 3/7] procfs: implement /proc/N/mounts, Samuel Thibault, 2014/09/28
- [PATCH 4/7] procfs: do not test whether /hurd/mtab exists, Justus Winter, 2014/09/22
- Re: [PATCH 4/7] procfs: do not test whether /hurd/mtab exists,
Samuel Thibault <=
- [PATCH 2/7] procfs: implement /proc/filesystems, Justus Winter, 2014/09/22
- Re: [PATCH 2/7] procfs: implement /proc/filesystems, Samuel Thibault, 2014/09/28
- [PATCH 5/7] procfs: generalize the translator linkage code, Justus Winter, 2014/09/22
- Re: [PATCH 5/7] procfs: generalize the translator linkage code, Samuel Thibault, 2014/09/28
- [PATCH 6/7] procfs: reorganize rootdir.c, Justus Winter, 2014/09/22
- Re: [PATCH 6/7] procfs: reorganize rootdir.c, Samuel Thibault, 2014/09/28
- [PATCH 7/7] procfs: provide magic retry response for /proc/self, Justus Winter, 2014/09/22
- Re: [PATCH 7/7] procfs: provide magic retry response for /proc/self, Samuel Thibault, 2014/09/30
- And the libc patch, Justus Winter, 2014/09/22
- [PATCH] hurd: Handle `proc/self' magical lookup retry, Justus Winter, 2014/09/22