Re: [PATCH] * hurd/translator/httpfs.mdwn: added a link to sitemaps.org.

2023-10-08 Thread Samuel Thibault
Applied, thanks!

jbra...@dismail.de, le mer. 24 mai 2023 13:47:15 -0400, a ecrit:
> ---
>  hurd/translator/httpfs.mdwn | 10 --
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/hurd/translator/httpfs.mdwn b/hurd/translator/httpfs.mdwn
> index 3ac9f8ab..0ce0f30b 100644
> --- a/hurd/translator/httpfs.mdwn
> +++ b/hurd/translator/httpfs.mdwn
> @@ -78,11 +78,17 @@ through a proxy server, substitute your proxies IP and 
> port no.s
>  - query-string and fragment support
>  - HTTP/1.1 support
>  - HTTP/2 support
> -- HTTP/3 support
> +- HTTP/3 support (there may exist a C library that provides HTTP/[123]
> +  support).
>  - Teach httpfs to understand HTTP status codes like re-directs, 404 not 
> found,
>etc.
>  - Teach httpfs to look for "sitemaps".  Many sites offer a sitemap, and this
> -  would be a nifty way for httpfs to allow grep-ing the entire site's 
> contents.
> +  would be a nifty way for httpfs to allow grep-ing the entire site's
> +  contents. [[sitemaps.org|https://www.sitemaps.org]] is a great resource for
> +  this.
> +- Teach httpfs to check if the computer has an internet connection at
> +  startup and during operation.  The translator causes 30 second
> +  pauses on commands like "ls", when the internet is down.
>  
>  # Source



Re: [PATCH] * hurd/translator/httpfs.mdwn: added a link to sitemaps.org.

2023-05-25 Thread Samuel Thibault
Hello,

Joshua Branson, le mer. 24 mai 2023 13:29:14 -0400, a ecrit:
> Sergey Bugaev  writes:
> 
> > On Mon, May 22, 2023 at 6:50 PM jbra...@dismail.de  
> > wrote:
> >> +- Teach httpfs to check if the computer has an internet connection at
> >> +  startup and during operation.  The translator causes 30 second
> >> +  pauses on commands like "ls", when the internet is down.  It is
> >> +  probably better to teach libnetfs to test for internet connectivity.
> >
> > Why?
> >
> > libnetfs, despite its name, has nothing to do with the network. In
> > fact, it is designed in such a way that is nice for writing
> > "pseudo-filesystems", but not really suitable for *network*
> > filesystems. A more appropriate name for libnetfs would be
> > libpseudofs. It is possible to write network filesystems based on
> > libnetfs (as httpfs demonstrates), but it's not optimized for that,
> > and many issues start to pop up once you try to. Some day I will write
> > a long email detailing why :)
> 
> Other than it being a lot of work, would anyone be oppossed to re-naming
> libnetfs to libdirfs?  And then creating a libnetfs for network
> filesystems?  

Re-using names most often leads to a lot of confusion.

Also, possibly the underlying issues that network filesystems meet with
libnetfs might not actually be about being strictly about networks.

Samuel



Re: [PATCH] * hurd/translator/httpfs.mdwn: added a link to sitemaps.org.

2023-05-24 Thread Joshua Branson
Sergey Bugaev  writes:

> On Mon, May 22, 2023 at 6:50 PM jbra...@dismail.de  wrote:
>> +- Teach httpfs to check if the computer has an internet connection at
>> +  startup and during operation.  The translator causes 30 second
>> +  pauses on commands like "ls", when the internet is down.  It is
>> +  probably better to teach libnetfs to test for internet connectivity.
>
> Why?
>
> libnetfs, despite its name, has nothing to do with the network. In
> fact, it is designed in such a way that is nice for writing
> "pseudo-filesystems", but not really suitable for *network*
> filesystems. A more appropriate name for libnetfs would be
> libpseudofs. It is possible to write network filesystems based on
> libnetfs (as httpfs demonstrates), but it's not optimized for that,
> and many issues start to pop up once you try to. Some day I will write
> a long email detailing why :)

Other than it being a lot of work, would anyone be oppossed to re-naming
libnetfs to libdirfs?  And then creating a libnetfs for network
filesystems?  

>
> Sergey

-- 

Joshua Branson
Sent from the Hurd



Re: [PATCH] * hurd/translator/httpfs.mdwn: added a link to sitemaps.org.

2023-05-22 Thread Joshua Branson
Sergey Bugaev  writes:

> On Mon, May 22, 2023 at 6:50 PM jbra...@dismail.de  wrote:
>> +- Teach httpfs to check if the computer has an internet connection at
>> +  startup and during operation.  The translator causes 30 second
>> +  pauses on commands like "ls", when the internet is down.  It is
>> +  probably better to teach libnetfs to test for internet connectivity.
>
> Why?
>
> libnetfs, despite its name, has nothing to do with the network. In
> fact, it is designed in such a way that is nice for writing
> "pseudo-filesystems", but not really suitable for *network*
> filesystems. A more appropriate name for libnetfs would be
> libpseudofs. It is possible to write network filesystems based on
> libnetfs (as httpfs demonstrates), but it's not optimized for that,
> and many issues start to pop up once you try to. Some day I will write
> a long email detailing why :)

Thanks for the explanation!  I'll make some tweaks to this patch and
send again.

>
> Sergey
>

-- 

Joshua Branson
Sent from the Hurd



Re: [PATCH] * hurd/translator/httpfs.mdwn: added a link to sitemaps.org.

2023-05-22 Thread Sergey Bugaev
On Mon, May 22, 2023 at 6:50 PM jbra...@dismail.de  wrote:
> +- Teach httpfs to check if the computer has an internet connection at
> +  startup and during operation.  The translator causes 30 second
> +  pauses on commands like "ls", when the internet is down.  It is
> +  probably better to teach libnetfs to test for internet connectivity.

Why?

libnetfs, despite its name, has nothing to do with the network. In
fact, it is designed in such a way that is nice for writing
"pseudo-filesystems", but not really suitable for *network*
filesystems. A more appropriate name for libnetfs would be
libpseudofs. It is possible to write network filesystems based on
libnetfs (as httpfs demonstrates), but it's not optimized for that,
and many issues start to pop up once you try to. Some day I will write
a long email detailing why :)

Sergey