[Samba] posix locking - what does it do?
Jeremy Allison
jra at samba.org
Tue Jun 22 15:43:41 GMT 2004
On Tue, Jun 22, 2004 at 11:17:50AM +0200, Rudolf Polzer wrote:
> What exactly does the POSIX locking option do?
>
> I know what it does NOT do: flock() the files a Windows machine has
> locked. When for example a file is locked on server side (Linux, I
> tried all three Debian samba releases from stable, testing and
> unstable), notepad on Windows still opens it. If it however is locked by
> a Windows application on another computer, notepad refuses.
>
> Does "posix locking" perhaps map SMB locks to something else than
> flock()?
Yes, it maps them into POSIX fcntl byte-range locks.
Jeremy.
More information about the samba
mailing list