From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 7 21:54:44 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF89F16A4DA for ; Mon, 7 Aug 2006 21:54:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06E9443D55 for ; Mon, 7 Aug 2006 21:54:42 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k77LsZiQ039316; Mon, 7 Aug 2006 17:54:35 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Roman Kurakin Date: Mon, 7 Aug 2006 17:41:24 -0400 User-Agent: KMail/1.9.1 References: <20060731203213.GA75233@hades.panopticon> <200608071509.08923.jhb@freebsd.org> <44D7AB21.8080303@inse.ru> In-Reply-To: <44D7AB21.8080303@inse.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608071741.24844.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 07 Aug 2006 17:54:35 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1639/Mon Aug 7 09:34:09 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, Dmitry Marakasov , Dag-Erling Sm?rgrav Subject: Re: absolute vs. relative offsets in disklabel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2006 21:54:44 -0000 On Monday 07 August 2006 17:05, Roman Kurakin wrote: > John Baldwin: > > >On Sunday 06 August 2006 10:59, Dmitry Marakasov wrote: > > > > > >>* Dag-Erling Sm?rgrav (des@des.no) wrote: > >> > >> > >>>>Recent `disklabel differences FreeBSD, DragonFly' thread gave me a > >>>>thought - why do we have absolute offsets in disklabel? > >>>> > >>>> > >>>We don't, AFAIK. Since the transition to GEOM, the offsets are > >>>relative to the start of the containing provider. > >>> > >>> > >>It has nothing to do with GEOM, it's ondisk format of disklabel. I've > >>confirmed, there are global offsets. > >> > >> > >Actually, the GEOM provider goes though some gymnastics to portray the offsets > >as relative to userland, but ondisk they are still stored as absolute to > >preserve compatiblity. > > > > > You mean that "read mbroffset" to geom could return a relative value? No, this is specific to the BSD label class, not something GEOM does in general. -- John Baldwin