From owner-freebsd-arch Wed Nov 1 16:46:54 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mail.wgate.com (mail.wgate.com [38.219.83.4]) by hub.freebsd.org (Postfix) with ESMTP id 8A07537B4CF; Wed, 1 Nov 2000 16:46:50 -0800 (PST) Received: from jesup.eng.tvol.net ([10.32.2.26]) by mail.wgate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VT2YBRFG; Wed, 1 Nov 2000 19:46:56 -0500 Reply-To: Randell Jesup To: Warner Losh Cc: obrien@FreeBSD.ORG, arch@FreeBSD.ORG, Matt Dillon Subject: Re: Like to commit my diskprep References: <20001031132945.B28476@dragon.nuxi.com> <200010311747.KAA80353@harmony.village.org> <200011010341.eA13fCV42009@billy-club.village.org> <200011011735.KAA54300@harmony.village.org> From: Randell Jesup Date: 01 Nov 2000 19:50:37 -0500 In-Reply-To: Warner Losh's message of "Wed, 01 Nov 2000 10:35:03 -0700" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh writes: >: IMHO disklabel should have always been able to do that anyways. >: Fix disklabel. If you still need a better UI/skin/X interface on top of >: disklabel, fine, but fix disklabel (and fdisk, newfs, etc) first. > >How should I fix disklabel? There's currently no syntax for the >concept of a "hog" partition in this disklabel, or any other one that >I've seen (except for Solbourne's interactive one, but it didn't have >a non-interactive way to do that). This functionality would arguably >be a big wart on disklabel, but then again disklabel isn't going to >win any beauty contests anytime soon. OpenBSD does have a disklabel >-E which is akin to the Solboune interactive disk label program. Well -E would be a darn good start (not knowing any more about it than you mentioned here). Adding 'hog' to the syntax when editing/using a label would be nice. Totally revising the syntax would be nice. Perhaps something like: # size offset fstype [fsize bsize bps/cpg] a: 50M 0 4.2BSD 1024 8192 16 b: 100M * swap c: * 0 unused f: 500M * 4.2BSD h: * * vinum (or maybe h: remaining * for a hog partition, or "hog", etc) instead of: # size offset fstype [fsize bsize bps/cpg] a: 81920 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 84*) b: 160000 81920 swap # (Cyl. 84* - 218*) c: 1173930 0 unused 0 0 # (Cyl. 0 - 1211*) f: 2000000 211920 4.2BSD 1024 8192 16 # h: 962010 2211920 vinum # Basically, allow "*" to mean "use the appropriate default", and allow sizes to be specified in (blocks)/K/M/G. I have a patch for this that fixes all sorts of other weaknesses in disklabel in the offing (fully written, not yet fully tested). I got annoyed at merely discussing this. It also improves error reporting, and checks for overlapping partitions (excluding 'c' of course). -- Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94) rjesup@wgate.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message