From owner-cvs-all@FreeBSD.ORG Sun Nov 30 15:30:11 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 192D116A4CE; Sun, 30 Nov 2003 15:30:11 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7882643FB1; Sun, 30 Nov 2003 15:30:10 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAUNUAXJ070310; Sun, 30 Nov 2003 15:30:10 -0800 (PST) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAUNUApV070309; Sun, 30 Nov 2003 15:30:10 -0800 (PST) (envelope-from iedowse) Message-Id: <200311302330.hAUNUApV070309@repoman.freebsd.org> From: Ian Dowse Date: Sun, 30 Nov 2003 15:30:09 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: 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: Sun, 30 Nov 2003 23:30:11 -0000 iedowse 2003/11/30 15:30:09 PST FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In dounmount(), only call checkdirs() prior to VFS_UNMOUNT() in the forced unmount case. Otherwise, a file system that is referenced only by process fd_cdir/fd_rdir references to the file system root vnode will be successfully unmounted without the MNT_FORCE flag. The previous behaviour was not compatible with the unmount semantics required by amd(8), so file systems could be unexpectedly unmounted while there were still references to the file system root directory. Reported by: Erez Zadok Approved by: re (scottl) Revision Changes Path 1.117 +7 -3 src/sys/kern/vfs_mount.c