[cifs-protocol] Identifying Matching Share Subtrees

Gerald (Jerry) Carter jerry at samba.org
Fri Apr 28 21:21:40 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 28 Apr 2006, Scott Goldstein wrote:

> Suppose on a machine (Windows in this case) that the following file
> shares exist:
> 
> 1.	C:\Public shared as Public
> 2.	C:\Public\foo shared as Nested
> 
> In this case, everything in \\Machine\Public\foo\**
> <file:///\\Machine\Public\foo\**>  is the same as \\Machine\Nested\**
> <file:///\\Machine\Nested\**> 
> 
> Using CIFS, I would like to identify such situations ("matching share
> subtrees") for a particular machine.  In order to do this, I think I
> would need the following:

You can use the GetShareInfo() rpc to check the actual path on disk
and compare them.  I think that's the eariest route.





cheers, jerry
=====================================================================
I live in a Reply-to-All world.               -----------------------
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFEUodnIR7qMdg1EfYRAnucAJ9kIXP6JXW0kiEXl41reTRULQ+XHQCePfN7
w8NJgJ7qD7LmQHa1Ry/2N8Q=
=H/6c
-----END PGP SIGNATURE-----


More information about the cifs-protocol mailing list