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()? -- A pumpkin, an eggplant and a tomato are on a truck. What will fall on a sharp curve? --> Gur fcrrq. >> http://www.ccc-offenbach.org <<
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.
-----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-----