[Samba] posix locking - what does it do?

Gerald (Jerry) Carter jerry at samba.org
Tue Jul 20 21:27:43 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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()?

yeah.  It maps them onto posix byte range locks
(e.g. fcntl() )




cheers, jerry
- ----------------------------------------------------------------------
Hewlett-Packard            ------------------------- http://www.hp.com
SAMBA Team                 ---------------------- http://www.samba.org
GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
"...a hundred billion castaways looking for a home." ----------- Sting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFA/Y5PIR7qMdg1EfYRAofGAKCrj7nvtP0VFRXjPL+9kPq5b2eivQCfXAcj
Wk0oWc0Ru14OCmZr9ilQh9I=
=Y1Al
-----END PGP SIGNATURE-----


More information about the samba mailing list