lkml.org 
[lkml]   [1997]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: File locking problems?
thospel@mail.dma.be wrote:

> There also seems to be a problem with the nfs daemons inheriting
> filedescriptors from the program that causes them to be started.
> I don't know if this problem will also exist with autofs, never used it.
>
> I run amd which opens a logfile (for me /var/adm/amd, which in reality lives
> in my /.home partition). The nfs daemons inherit this file descriptor (easy to
> see in their /proc entries in the recent kernels), and when at shutdown time
> the processes get killed, amd stops and closes the file descriptor, but
> the nfs damons stay around (they seem unkillable) with /var/adm/amd open,
> so /.home cannot be unmounted -> big filesystem check at the next boot.

This problem has been fixed in the 2.1.xx nfs daemons. The underlying
limitation was that do_fork() didn't like having a NULL files pointer,
and sometimes rpciod got started from lockd. The fork() code now tests
for NULL files, so the daemons can close their files.

Regards,
Bill

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.068 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site