From owner-freebsd-arch@FreeBSD.ORG Wed Jul 2 20:16:07 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBAB237B401 for ; Wed, 2 Jul 2003 20:16:07 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 749E843FD7 for ; Wed, 2 Jul 2003 20:16:05 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h633FkaQ019647; Wed, 2 Jul 2003 20:15:51 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h633FcFh019646; Wed, 2 Jul 2003 20:15:38 -0700 (PDT) Date: Wed, 2 Jul 2003 20:15:37 -0700 From: "David O'Brien" To: Ian Dowse Message-ID: <20030703031537.GD18897@dragon.nuxi.com> References: <200306282254.aa83607@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306282254.aa83607@salmon.maths.tcd.ie> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-arch@freebsd.org Subject: Re: Unmounting by filesystem ID X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 03:16:08 -0000 On Sat, Jun 28, 2003 at 10:54:04PM +0100, Ian Dowse wrote: > The patch below adds a new mount flag MNT_BYFSID that can be used > to unmount a filesystem by specifying its filesystem ID instead of > a path. The umount utility is changed to use this mechanism by > default. This approach has a number of advantages: > > - It avoids any lookup operations that could potentially block > forever, so filesystems such as NFS can be reliably unmounted > even if the server is not responding but looking up the root node > would require an RPC (maybe to an underlying filesystem). VERY nice.