From owner-freebsd-current@FreeBSD.ORG Fri Dec 26 21:08:43 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E71321065675 for ; Fri, 26 Dec 2008 21:08:43 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by mx1.freebsd.org (Postfix) with ESMTP id 7A9468FC16 for ; Fri, 26 Dec 2008 21:08:43 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id mBQL8e9M012553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Dec 2008 08:08:41 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id mBQL8evq053499; Sat, 27 Dec 2008 08:08:40 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id mBQL8dcC053498; Sat, 27 Dec 2008 08:08:39 +1100 (EST) (envelope-from peter) Date: Sat, 27 Dec 2008 08:08:39 +1100 From: Peter Jeremy To: obrien@freebsd.org, Marcel Moolenaar , freebsd-current@freebsd.org Message-ID: <20081226210839.GG1081@server.vk2pj.dyndns.org> References: <95872328-4FBF-4DAD-98DE-024FF53A4505@mac.com> <20081226085453.GB26808@dragon.NUXI.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KdquIMZPjGJQvRdI" Content-Disposition: inline In-Reply-To: <20081226085453.GB26808@dragon.NUXI.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Re: "geometry does not match label" 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, 26 Dec 2008 21:08:44 -0000 --KdquIMZPjGJQvRdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Dec-26 00:54:53 -0800, David O'Brien wrote: ># fsck /dev/ad8s4f >fsck: Could not determine filesystem type I'm seeing this as well but it seems to go away if the filesystem is listed in /etc/fstab. ># disklabel /dev/ad8s4f ># /dev/ad8s4f: >8 partitions: ># size offset fstype [fsize bsize bps/cpg] > c: 83441610 150994935 unused 0 0 # "raw" part, don= 't edit > f: 83441610 150994935 4.2BSD 0 0 0 >partition c: offset past end of unit >partition c: partition extends past end of unit >disklabel: partition c doesn't start at 0! >disklabel: An incorrect partition c may cause problems for standard system= utilities >partition f: offset past end of unit >partition f: partition extends past end of unit It looks like GEOM_PART_BSD reports partition information that is incompatible with bsdlabel. This is a PITA. OTOH, 'gpart show' works sanely (though you have to map from 1-origin partition numbers to partition names). If GEOM_PART_xxx is going to be kept as the default, either bsdlabel needs to learn how to interpret the partition information (preferred) or it needs to refer the user to gpart(8) and not produce confusing and erroneous error messages. Overall, gpart is definitely not a user-friendly way of managing disk space (though it is usable). As has already been noted (in part): 1) it needs to use expand_number(3) or similar to read sizes 2) the '-b offset' option to 'gpart add' needs to be made optional 3) the '-i index' option to 'delete', 'modify', 'set' and 'unset' needs to be optional (derived from the 'geom' argument if not specified - so 'gpart delete -i 3 ad4' and 'gpart delete ad4s3' are equivalent). --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --KdquIMZPjGJQvRdI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklVR9cACgkQ/opHv/APuIej8gCgg63iVb6GhhRLQRSAlh1r74fj EpIAmwaYr3oFIsE0zeZ+qwvqM0fYhkyt =PYFf -----END PGP SIGNATURE----- --KdquIMZPjGJQvRdI--