[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Jan 26 10:55:29 MST 2011


On Wed, Jan 26, 2011 at 09:53:19AM -0800, Jeremy Allison wrote:
> On Wed, Jan 26, 2011 at 06:30:55PM +0100, Volker Lendecke wrote:
> > On Wed, Jan 26, 2011 at 09:25:08AM -0800, Jeremy Allison wrote:
> > > Aha ! I know what should convince you - it's calculated
> > > from the connect path + the filename (it needs to be the
> > > full path on disk). The connect path is a property of the
> > > tcon. This should at least show you it's not just a filename
> > > property.
> > 
> > Well, but then eventually we need to move to absolute path
> > names everywhere...
> 
> No - we only use this on *open* - that's what I'm trying
> to say. Open is a special point - when we translate from
> whatever pathname representation to a handle. That's why
> the name_hash (which really represents the combination
> of dev/ino/full-pathname) is a property of files_struct.

In fact I could have added in dev/ino into the hash
caclulation (as it represents an open file) - but I
didn't as I knew that at the point we're examining
the hash we always have verified that the dev/ino
are the same (under the lock_struct).

Jeremy.


More information about the samba-technical mailing list