From owner-freebsd-current@FreeBSD.ORG Tue Oct 25 06:08:19 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0D9C106566B for ; Tue, 25 Oct 2011 06:08:19 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 87CD48FC0C for ; Tue, 25 Oct 2011 06:08:17 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 3EF2A5DAD; Tue, 25 Oct 2011 06:08:15 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id p9P68ELn067821; Tue, 25 Oct 2011 06:08:14 GMT (envelope-from phk@phk.freebsd.dk) To: Benjamin Kaduk From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 24 Oct 2011 21:18:57 -0400." Content-Type: text/plain; charset=ISO-8859-1 Date: Tue, 25 Oct 2011 06:08:14 +0000 Message-ID: <67820.1319522894@critter.freebsd.dk> Cc: "Andrey V. Elsukov" , freebsd-current@freebsd.org Subject: Re: aliasing (or renaming) kern.geom.debugflags X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 06:08:20 -0000 In message , Benjamin Kaduk writes: >On Mon, 24 Oct 2011, Andrey V. Elsukov wrote: >> This is stale message. boot0cfg might work without this. > >On a *mounted* disk? Surely that qualifies as an "open" for the purposes >of the check. The way this used to work before gpart, is that boot0cfg would send a GEOM ctl-message to the MBR-geom asking "Would you please write this boot code ?" Since the MBR-geom was the "owner" of the whole disk, and the one who had it open for writing, it could obviously do so, if it saw fit, and after it had edited its idea about the mbr-partition table into that boot-code. Gpart appearantly does not implement such a ctl message. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.