From owner-cvs-src@FreeBSD.ORG Sun Nov 28 20:57:26 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 346C916A4CE; Sun, 28 Nov 2004 20:57:26 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BA1D43D2F; Sun, 28 Nov 2004 20:57:26 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iASKvPrS038866; Sun, 28 Nov 2004 20:57:25 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iASKvPPs038865; Sun, 28 Nov 2004 20:57:25 GMT (envelope-from phk) Message-Id: <200411282057.iASKvPPs038865@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 28 Nov 2004 20:57:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom geom_mbr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 20:57:26 -0000 phk 2004-11-28 20:57:25 UTC FreeBSD src repository Modified files: sys/geom geom_mbr.c Log: Fix a long standing bug in geom_mbr which is only now exposed by the correct open/close behaviour of filesystems: When an ioctl to modify the MBR arrives, we cannot take for granted that we have the consumer open. The symptom is that one cannot run 'boot0cfg -s2 /dev/ad0' in single-user mode because / is the only open partition in only open r1w0e1. If it is not, we attempt to increase the write count by one and decrease it again afterwards. Presumably most if not all other slices suffer from the same problem. Revision Changes Path 1.62 +14 -4 src/sys/geom/geom_mbr.c