|
|
Subscribe / Log in / New account

Glibc 2.20 released

Glibc 2.20 released

Posted Sep 9, 2014 14:16 UTC (Tue) by bfields (subscriber, #19510)
In reply to: Glibc 2.20 released by Wol
Parent article: Glibc 2.20 released

Nix said it's fine so long as you've got a pure linux setup. Anything else, and you're into a world of hurt where things work locally but not over NFS, or over NFS but not locally, or they appear locked when they aren't, or or or.

That's not quite right, and not what Nix said.

The problem discussed there is the handling of POSIX (fcntl) and BSD (flock) locks. They do not normally interact with each other, except on NFS, where these days the Linux client translates both into the same kind of NFS lock (because that's the only kind NFS has available).

That behavior is identical whether you're using a Linux server or something else.


to post comments

Glibc 2.20 released

Posted Sep 17, 2014 18:25 UTC (Wed) by nix (subscriber, #2304) [Link]

The irony is that after saying oooh I've never seen a problem, what did I run into with some of my test code, but a problem clearly attributable to flock() and fcntl() locks blocking each other when they shouldn't.

(Still haven't had a problem that's affected real life -- this was just test code -- but still, thanks, Lennart, I'd have spent ages hunting for the cause of *that* one if it hadn't been for our recent discussion! :) )


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds