Skip site navigation (1)Skip section navigation (2)
Date:      01 Nov 2000 19:50:37 -0500
From:      Randell Jesup <rjesup@wgate.com>
To:        Warner Losh <imp@village.org>
Cc:        obrien@FreeBSD.ORG, arch@FreeBSD.ORG, Matt Dillon <dillon@earth.backplane.com>
Subject:   Re: Like to commit my diskprep
Message-ID:  <ybuhf5ri4de.fsf@jesup.eng.tvol.net.jesup.eng.tvol.net>
In-Reply-To: Warner Losh's message of "Wed, 01 Nov 2000 10:35:03 -0700"
References:  <ybuy9z3iom7.fsf@jesup.eng.tvol.net.jesup.eng.tvol.net> <20001031132945.B28476@dragon.nuxi.com> <200010311747.KAA80353@harmony.village.org> <200011010341.eA13fCV42009@billy-club.village.org> <200011011735.KAA54300@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@village.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ybuhf5ri4de.fsf>