From owner-freebsd-arch@FreeBSD.ORG Sat Jun 28 17:27:27 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 2D62C37B401 for ; Sat, 28 Jun 2003 17:27:27 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-104-32.dsl.lsan03.pacbell.net [64.169.104.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C18244035 for ; Sat, 28 Jun 2003 17:27:26 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 15ED666BE5; Sat, 28 Jun 2003 17:27:25 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id E8B64B1F; Sat, 28 Jun 2003 17:27:24 -0700 (PDT) Date: Sat, 28 Jun 2003 17:27:24 -0700 From: Kris Kennaway To: Ian Dowse Message-ID: <20030629002724.GA61860@rot13.obsecurity.org> References: <200306282254.aa83607@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: <200306282254.aa83607@salmon.maths.tcd.ie> User-Agent: Mutt/1.4.1i 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 List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 00:27:27 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 28, 2003 at 10:54:04PM +0100, Ian Dowse wrote: >=20 > 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: >=20 > - 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). > - The filesystem specification is unambiguous, so umount(8) can > be sure that it is unmounting the correct filesystem (more > work in umount(8) may be required here). > - Detached filesystems can be unmounted. If a filesystem becomes > detached from the filesystem hierarchy because the underlying > filesystem got unmounted, it does not require a reboot to unmount > it. >=20 > Since unmounting by a path name is now only required for compatibility, > in that case unmount() now just does a string comparison to find > the correct filesystem. Also, this patch only affects unmounting; > a similar approach could be applied to MNT_UPDATE mount operations. >=20 > I would like to commit this during the next few days. Any comments > or suggestions? The approach sounds great to me; these are long-standing annoyances in FreeBSD. Kris --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+/jJsWry0BWjoQKURAtgxAKCOYWvNJVyogbJL8zlVna2NvzMeugCg/ac3 iVsxySX53MlvGDdoTuTu4Uc= =inDX -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--