Yes, your are wright. But Samba will not do a byte ranged lock using fcntl() on the file when lock range is below 2^31 as stated in the docs.
/Patrik On tis, 2004-02-10 at 00:22, Jeremy Allison wrote: > 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 > onto POSIX. > > Jeremy. -- "In a world without fences who needs Gates" Patrik Gustavsson, Senior Technical Consultant [EMAIL PROTECTED] Telephone: +46 60 671540 http://glen.sweden Mobile: +46 70 3551040 SUN MICROSYSTEMS Fax: +46 60 671550 -------------------------------------------------------------- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
