Locking between NT/Linux
Jeremy Allison
jeremy at valinux.com
Wed Jun 27 21:26:45 GMT 2001
Michael Kunze wrote:
> So i tried Samba 2.2.0 with Linux 2.4 to get those fancy kernel oplocks.
> But this doesn't change anything -- i still can delete the file from
> Linux just using rm.
Yes, you need this. But oplocks have nothing to do with being
able to rm the file. That's a directory operation, not a file one.
> I even built a little Perl client which explicitely locks the file in
> question via 'flock' on the Linux side -- but I'm still able to write to
> that file with an Hex editor from my NT box, even if it is write locked
> from Perl/Linux.
Samba uses fcntl locks, not flock. Also you'll need
strict locking turned on if you want Samba to check on
every read/write.
Jeremy.
--
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------
More information about the samba-technical
mailing list