Group is not applied to hosts
Status: Beta
Brought to you by:
kshevetskiy
The grouping feature does not work as expected. Even if a group_name is specified in a host definition, the host is still mounted at the root of the share folder. Also, when a link is created, it appears in the group folder but is broken because the host is not mounted in the group folder.
This was tested on Ubuntu 20.04 LTS running smbnetfs v0.6.1-1
Let's take this definition as an example of the content of ~/.smb/smbnetfs.host:
group MyGroup host myserver.example.com parent_group=MyGroup visible=true link MyGroup/test otherserver.example.com/Share
root@ubuntu:~$smbnetfs ~/shares root@ubuntu:~$ ls -l shares total 0 drwxrwxrwx 2 root root 0 Jan 1 1970 myserver.example.com drwxrwxrwx 2 root root 0 Jan 1 1970 MyGroup root@ubuntu:~$ ls -l shares/MyGroup total 0 lrwxrwxrwx 1 root root 34 Jan 1 1970 test -> otherserver.example.com/Share root@ubuntu:~$ ls -l shares/MyGroup/test ls: cannot access 'abc': Invalid argument
Last line should say
ls: cannot access 'test': Invalid argument