VFS and tdb_lock

Brad Sahr bsahr at macromedia.com
Wed Oct 4 16:56:08 GMT 2000


How long does the tdb hashchain lock exist and what are the locks
protecting? Does the lock exist for the duration of the SMB request/response
pair or does it span the length of a session (connect/disconnect pair as
seen from the VFS)?

Brad

> -----Original Message-----
> From: samba-technical-admin at us4.samba.org
> [mailto:samba-technical-admin at us4.samba.org]On Behalf Of Jeremy Allison
> Sent: Thursday, September 28, 2000 5:33 PM
> To: Brad Sahr
> Cc: Samba Technical List
> Subject: Re: VFS and tdb_lock
>
<snip>
>
> Ah - ok - this now makes sense. The vfs_file_exist() call needs to
> return either False, or a valid dev/inode pair that is used to
> create the key for the tdb hashchain lock. If you fake this up
> and then change the dev/inode pair later on then the code will
> probably break in the way you've seen.
>





More information about the samba-technical mailing list