Het real path of a share.
stefbon at gmail.com
Wed Feb 13 14:45:10 MST 2013
2013/2/13 simo <idra at samba.org>:
> On Wed, 2013-02-13 at 16:00 +0100, Stef Bon wrote:
>> I'm writing a fs notify system (notifyfs) which I want to work with
>> network filesystems like sshfs, cifs and nfs.
>> With cifs I use the following format:
>> where public is the name of the share.
>> Is it possible to parse this name and get the path, besides just
>> parsing the smb.conf directory?
> Please do not invent your own URL scheme, there is an old draft that you
> should probably use here:
Why not. I think you are not aware what I mean here. It's an url for
internal use only. I'm not suggesting anything generic for common use.
> If you use this scheme you'll be able to correctly parse the URL.
> As for your request, I guess what you are asking is if you can obtain
> the actual path on the file server and not the path relative to the
> The answer is 'maybe', it depends on the share and whether there are vfs
> modules loaded. In a samba server a share can even be completely
> Besides there is no need for something like notifyfs for the cifs
> protocol, because the protocol already handles notifications on it's
> own, and done the right way (with proper access control and semantics)
You say there is no need. This is not true. Maybe Samba handles change
notify request like they should, but the filesystem for linux, cifs ,
do not. So on linux, since to make it work the local fseven system
(apps connect to), the filesystem and the backend should support it.
Right now only the samba server supports it.
I'm developing a service which can provide some simple fsevent
notification, bypassing the network filesystems. This is not how it
should work, I know, but I will be very happy whenI get this working.
Yes when this works my intention is to make this work in cooperation
with fuse filesystems (sshfs, and fuse filesystems like those using
libsmbclient and fuse filesystem to connect to nfs) and then kernel
filesystems like cifs and nfs. One step at a time.
More information about the samba-technical