httpdirfs
httpdirfs copied to clipboard
fail early when mountpoint does not exist
currently it builds the linktable first and then throws
fuse: bad mount point `mnt': No such file or directory
Please provide a bit more detail to explain what's happening.
cd $(mktemp -d)
or
rmdir mnt
then
$ httpdirfs -f http://localhost/ mnt
LinkTable_print: --------------------------------------------
LinkTable_print: LinkTable 0x3ac38700 for http://localhost/
LinkTable_print: --------------------------------------------
LinkTable_print: 0 H 0 http://localhost/
LinkTable_print: 1 D 0 .. http://localhost/../
...
LinkTable_print: --------------------------------------------
LinkTable_print: Invalid link count: 18
LinkTable_print: --------------------------------------------
fuse: bad mount point `mnt': No such file or directory
Ah I see.
FUSE initialisation happens after the network initialisation. This is why it behaves that way.
same problem when the fuse kernel module is not loaded
$ httpdirfs -f http://localhost/ mnt
LinkTable_print: --------------------------------------------
LinkTable_print: LinkTable 0x3ac38700 for http://localhost/
LinkTable_print: --------------------------------------------
LinkTable_print: 0 H 0 http://localhost/
LinkTable_print: 1 D 0 .. http://localhost/../
...
LinkTable_print: --------------------------------------------
LinkTable_print: Invalid link count: 18
LinkTable_print: --------------------------------------------
fuse: device not found, try 'modprobe fuse' first