[Samba] A samba locking question
jra at samba.org
Mon Feb 9 23:22:23 GMT 2004
On Thu, Feb 05, 2004 at 09:25:25AM +0100, Patrik Gustavsson wrote:
> The things that tricked me was that I read the docs
> for Samba 3 regarding locks.
> And it says in the third paragraph in section 14.2
> "Samba 2.2 and above implements record locking completely independent
> of the underlying UNIX system. If a byte range lock that the client
> requests happens to fall into the range of 0-2^31, Samba hands this
> request down to the UNIX system. All other locks cannot be seen by
> UNIX, anyway"
> I interperted that Samba would do fcntl locks on the file if the request
> is below 2^31 and not if it is above.
> Which are not true.
> Secondly, I don't understand why Samba is checking if a file
> locked through fcntl before opening it, when it is not locking
> the file through fcntl when Samba is opening the file.
Samba doesn't use fcntl to check locks before opening, that's what
share modes are for. fcntl locks are for byte range lock mapping
More information about the samba