From owner-freebsd-current@FreeBSD.ORG Fri Mar 17 08:15:42 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A114E16A401 for ; Fri, 17 Mar 2006 08:15:42 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0595443D46 for ; Fri, 17 Mar 2006 08:15:18 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k2H8EHkj049304; Fri, 17 Mar 2006 10:14:17 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Fri, 17 Mar 2006 10:14:17 +0200 (EET) From: Dmitry Pryanishnikov To: Julian Elischer In-Reply-To: <441A0E61.5010707@elischer.org> Message-ID: <20060317095639.H41244@atlantis.atlantis.dp.ua> References: <20060317012428.N52721@atlantis.atlantis.dp.ua> <441A0E61.5010707@elischer.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: [patch] NetBSD disklabel support for geom_bsd 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: Fri, 17 Mar 2006 08:15:42 -0000 Hello! On Thu, 16 Mar 2006, Julian Elischer wrote: >> I hope my patch can be useful, and would like to get feedback about it. > > why not make a completely separate type and allow access to all teh slices > with the > same partition letters that netBSD uses.. i.e. a g_nbsd type.. I've decided to extend coverage of g_bsd instead of creating g_nbsd just because this route is shorter (I think that layout differences between disklabels in FreeBSD and NetBSD are not so big that would justify that piece of work and code duplication). After all, I think that NetBSD people were forced to extend their label just by the fact that they don't have slice units, and in most setups there will be enough 'a'-'h' entries to describe NetBSD partitions. In my example: # size offset fstype [fsize bsize cpg/sgs] a: 2097648 147942585 4.2BSD 2048 16384 21872 b: 2097648 150040233 swap c: 81931500 147942585 unused 0 0 d: 312579695 0 unused 0 0 e: 2088387 63 MSDOS f: 61440624 152137881 4.2BSD 2048 16384 28704 g: 10150560 213578505 4.2BSD 2048 16384 28456 it would be useful to move 'e' partition to the unused entry after 'h' (e.g., 'm' or 'n'), then it'll be available for the NetBSD partition. I think 'a'-'h' partitions are well enough for easy data interchange between NetBSD and FreeBSD. And, after all, I we call something 'g_bsd', we imply that it should understand all BSD's layout (including NetBSD), aren't we? (this is just my impression and hardly a technical argument ;) Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE