From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 7 21:06:49 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 F1CB816A4DA for ; Mon, 7 Aug 2006 21:06:49 +0000 (UTC) (envelope-from rik@inse.ru) Received: from mail.inse.ru (inse.ru [144.206.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 781CE43D49 for ; Mon, 7 Aug 2006 21:06:49 +0000 (GMT) (envelope-from rik@inse.ru) Received: from [127.0.0.1] (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTP id 83D0033C6A for ; Tue, 8 Aug 2006 01:06:48 +0400 (MSD) Message-ID: <44D7AD15.90107@inse.ru> Date: Tue, 08 Aug 2006 01:13:57 +0400 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7.12) Gecko/20060103 ASPLinux/1.7.12-1.5.1.1asp X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20060731203213.GA75233@hades.panopticon> <864pwtoorp.fsf@xps.des.no> <20060806145954.GC907@hades.panopticon> <200608071509.08923.jhb@freebsd.org> In-Reply-To: <200608071509.08923.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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:06:50 -0000 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? rik