From owner-cvs-all Tue Jan 1 7:12:12 2002 Delivered-To: cvs-all@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id CEDB437B426; Tue, 1 Jan 2002 07:12:06 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 1 Jan 2002 15:12:06 +0000 (GMT) To: Sheldon Hearn Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/nfs nfs_common.c In-Reply-To: Your message of "Mon, 31 Dec 2001 11:44:34 +0200." <33575.1009791874@axl.seasidesoftware.co.za> Date: Tue, 01 Jan 2002 15:12:05 +0000 From: Ian Dowse Message-ID: <200201011512.aa92900@salmon.maths.tcd.ie> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <33575.1009791874@axl.seasidesoftware.co.za>, Sheldon Hearn writes: > >Sounds like this addresses PR kern/32668, although the PR reports a >problem in -STABLE, where the NFS code is very different. Hopefully, >not so different in this case? :-) No, this bug was specific to -current, as it was introduced with Peter's cleanup and splitting of the NFS code. The problem in kern/32668 is hard to fix in general because it is a side-effect of the "silly rename" mechanism used by NFS to retain unix semantics for open descriptors on deleted files. If there are any open file descriptors on files in an NFS directory, then "rm -rf" on that directory will fail. The PR relates to the specific example of using portupgrade when /var/db/pkg is NFS-mounted. It should be fairly easy to address this case by finding out what process is holding the file descriptor open, and changing something to ensure that the descriptor is closed before the rm occurs. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message