File caching while "oplocks=False", black magic or what?
Jeremy Allison
jeremy at valinux.com
Fri Dec 3 19:04:51 GMT 1999
Yannis Tzavellas wrote:
>
> NOTE: I have definitely put "oplocks=False" in my smb.conf.
>
> I use a program running on 2 machines (win95 and win98) to access data on my samba server (samba 2.0.3-8, on Redhat 6.0). The programs, when accessing data on the server, go like this:
>
> int get_record(..) int put_record(..)
> { {
> if (lock(...)) { if (lock(...)) {
> if (read(...)) { if (write(...)) {
> .... ...
> } else ... } else ...
> } else ... } else ...
> } }
>
> i.e they simply lock the file and perform a read or write on it.
>
Exactly *how* are you doing the "lock()" function in
the Linux code ?
You need to use fcntl locks in order for this to work.
Regards,
Jeremy Allison,
Samba Team.
--
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------
More information about the samba
mailing list