Is it OK to have samba shares that overlap, like the following:
[whole-drive] path = /mnt/myusbdrive ... [music] path = /mnt/myusbdrive/music ... [movies] path = /mnt/myusbdrive/movies ...
I have a mounted external HDD with music and movies, plus a whole bunch of other stuff like backups. I want to expose the music and movies directories as separate samba shares (probably with guest access), so that they're uncluttered with all the other stuff; and I want to expose the entire drive as a separate samba share (with higher permissions) for doing more administrative things across the drive.
Does Samba behave well with this configuration? I'm wondering if I'd end up with problems like phantom writes if the same file is accessed at the same time across two different shares.
[Edit] Do I need to do anything with oplocks?
- OS: Debian GNU/Linux wheezy/sid on Raspberry Pi
- HDD: NTFS, mounted as ntfs-3g.
- Samba: version 3.6.6