[parisc-linux] file locking problems?

David Huggins-Daines dhd@linuxcare.com
08 Oct 2000 23:52:42 -0400


Randolph Chung <randolph@tausq.org> writes:

> update-passwd (a Debian package) makes a call to lckpwdf. That fails
> with an "Invalid argument" message. It looks like lckpwdf internally uses
> fcntl() locking, so I tried that and it too fails with an "Invalid
> argument" message.  This happens both on nfs and local ext2 fs.
> Similar tests with flock() seems to work ok.

Lots of things report this actually - if you look in your log files
you'll see lots of "utmp file is locked/read" - also in bootup
messages there will be a "can't lock <whatever>".

I have a feeling this might just be generally broken in the revision
of the kernel we're using, though it could be a problem with LFS in
our glibc if it is trying to use fcntl64().

I suspect that our LFS stuff is generally broken (lseek64() is, at
least) and plan to investigate further on Tuesday.

-- 
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.