httpdirfs icon indicating copy to clipboard operation
httpdirfs copied to clipboard

fail early when mountpoint does not exist

Open milahu opened this issue 4 months ago • 5 comments

currently it builds the linktable first and then throws

fuse: bad mount point `mnt': No such file or directory

milahu avatar Sep 10 '25 11:09 milahu

Please provide a bit more detail to explain what's happening.

fangfufu avatar Sep 10 '25 11:09 fangfufu

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

milahu avatar Sep 10 '25 12:09 milahu

Ah I see.

fangfufu avatar Sep 10 '25 13:09 fangfufu

FUSE initialisation happens after the network initialisation. This is why it behaves that way.

fangfufu avatar Sep 10 '25 23:09 fangfufu

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

milahu avatar Oct 05 '25 06:10 milahu