Re: NFS lockfiles etc: alpha implementation
In article <E0wfnZNfirstname.lastname@example.org>,
Christoph Lameter <email@example.com> wrote:
>Also check with Philip Hazel firstname.lastname@example.org who has done a significant
>amount of research on that issue for exim.
>The locking code in exim is probably the newest, most up to date code I know.
I just read the code in exim, and it does exactly the same as my
code :). Only exim relies (in certain occasions, AFAIK) on the st_nlink
value from stat(), which is know to be incorrect sometimes over NFS due
to caching. Otherwise exim & liblockfile use the same algorithm.
I see that exim also uses locking with fcntl() AFTER using a lockfile.
I should probably also use that for maillock().
I must say, the exim code is extremely well commented, and the comments
are very coherent. I'll probably use some of it as a base for documenting
| Miquel van Smoorenburg | "I need more space" "Well, why not move to Texas" |
| email@example.com | "No, on my account, stupid." "Stupid? Uh-oh.." |
| PGP fingerprint: FE 66 52 4F CD 59 A5 36 7F 39 8B 20 F1 D6 74 02 |
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .