HTTPFS

April 1, 2010

[Warning: This post is a backup recovery from my previous Wordpress blog. All content was automatically converted accessing a MySQL database using a Python script (details). Mostly are in Portuguese but if you are interest I can translate to English. If you found any problem dont’t hesitate to contact me in comments.]

WithFUSE it is possible to implement a fully functional filesystem in a userspace program, this allow great implementations like HTTPFS.

Before start don't forget to load fuse module (i.e: modprobe fuse). Lets do an example, suppose you need check latest Gentoo ISO to catch some files.

$ mkdir ~/GentooISO
$ mkdir ~/GentooISO/minimal
$ httpfs http://216.165.129.135/releases/x86/autobuilds/\
current-iso/install-x86-minimal-20100216.iso GentooISO/
$ cd ~/GentooISO
$ mount -o ro,loop install-x86-minimal-20100216.iso minimal

Note that I used216.165.129.135 instead distfiles.gentoo.org to avoid http error.

HEAD (read) failed with Status 302

You coud see the corret IP using, for example, wget.

Try it! It’s really fast.