From owner-cvs-all@FreeBSD.ORG Tue Jul 1 10:40:24 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37A1537B401; Tue, 1 Jul 2003 10:40:24 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2BFD43FBF; Tue, 1 Jul 2003 10:40:23 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h61HeN0U070546; Tue, 1 Jul 2003 10:40:23 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h61HeNov070543; Tue, 1 Jul 2003 10:40:23 -0700 (PDT) Message-Id: <200307011740.h61HeNov070543@repoman.freebsd.org> From: Ian Dowse Date: Tue, 1 Jul 2003 10:40:23 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/sys mount.2 src/sbin/umount umount.c src/sys/sys mount.h src/sys/kern vfs_mount.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 17:40:24 -0000 iedowse 2003/07/01 10:40:23 PDT FreeBSD src repository Modified files: lib/libc/sys mount.2 sbin/umount umount.c sys/sys mount.h sys/kern vfs_mount.c Log: Add a new mount flag MNT_BYFSID that can be used to unmount a file system by specifying the file system ID instead of a path. Use this by default in umount(8). This avoids the need to perform any vnode operations to look up the mount point, so it makes it possible to unmount a file system whose root vnode cannot be looked up (e.g. due to a dead NFS server, or a file system that has become detached from the hierarchy because an underlying file system was unmounted). It also provides an unambiguous way to specify which file system is to be unmunted. Since the ability to unmount using a path name is retained only for compatibility, that case now just uses a simple string comparison of the supplied path against f_mntonname of each mounted file system. Discussed on: freebsd-arch mdoc help from: ru Revision Changes Path 1.36 +17 -1 src/lib/libc/sys/mount.2 1.35 +71 -70 src/sbin/umount/umount.c 1.109 +32 -23 src/sys/kern/vfs_mount.c 1.148 +2 -5 src/sys/sys/mount.h