From owner-cvs-all Mon Jan 6 12:10:43 2003 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 5836637B401; Mon, 6 Jan 2003 12:10:42 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A9743EB2; Mon, 6 Jan 2003 12:10:42 -0800 (PST) (envelope-from phk@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 h06KAffh091612; Mon, 6 Jan 2003 12:10:41 -0800 (PST) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h06KAfeY091610; Mon, 6 Jan 2003 12:10:41 -0800 (PST) Message-Id: <200301062010.h06KAfeY091610@repoman.freebsd.org> From: Poul-Henning Kamp Date: Mon, 6 Jan 2003 12:10:41 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom geom_bsd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2003/01/06 12:10:41 PST Modified files: sys/geom geom_bsd.c Log: BSD disklabels expose the controling label though the 'c' partition, and some trick is necessary to prevent further BSD geoms from attaching to that. Our old trick was to make sure we don't attach to a geom from the "BSD" class, but this doesn't work if an intermediary geom obscures this fact. Instead, calculate the MD5 checksum of the label we target and ask if anybody below us loves that label. If they do we don't. Coded by: gordon. Revision Changes Path 1.35 +26 -12 src/sys/geom/geom_bsd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message