Ability for autofs mount
hazcod opened this issue · comments
Niels Hofmans commented
Hello,
I currently cannot get it to work with fstab/autofs. Is there something you need to implement for this?
Johan Gunnarsson commented
Should not need code changes in btfs to achieve this.
Lee Bousfield commented
Does this work for you? (instead of vdbfs.py
, use btfs
)
Niels Hofmans commented
Well I was trying to make it work with AutoFS but failed to make it work, so I thought this just didn't support mounting using fstab. I did try the symlink to make mount -t btfs
work.
/etc/auto.master
/tmp/torrent /etc/auto.btfs
/etc/auto.btfs
test -fstype=fuse :/usr/local/bin/btfs\#/tmp/test.torrent
Log:
~$ sudo automount -d -v -f
Starting automounter version 5.0.7, master map /etc/auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master file /etc/auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /tmp/torrent
master_do_mount: mounting /tmp/torrent
automount_path_to_fifo: fifo name /var/run/autofs.fifo-tmp-torrent
lookup_nss_read_map: reading map file /etc/auto.btfs
parse_init: parse(sun): init gathered global options: (null)
remount_active_mount: trying to re-connect to mount /tmp/torrent
mounted indirect on /tmp/torrent with timeout 300, freq 75 seconds
remount_active_mount: re-connected to mount /tmp/torrent
st_ready: st_ready(): state = 0 path /tmp/torrent
Niels Hofmans commented
@PlasmaPower , @johang , I can confirm it works with fstab, but not with autofs
Example fstab entry:
/usr/local/bin/btfs#/home/hazcod/magazines.torrent /mnt/torrent fuse user,allow_other 0 0