From owner-freebsd-gnome@FreeBSD.ORG Sat Oct 24 06:35:32 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E505106568D for ; Sat, 24 Oct 2009 06:35:32 +0000 (UTC) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id 06AE08FC13 for ; Sat, 24 Oct 2009 06:35:31 +0000 (UTC) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id n9O6ZtQI024610; Sat, 24 Oct 2009 02:35:55 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: "J.R. Oldroyd" In-Reply-To: <20091023141921.7aaecf23@shibato.opal.com> References: <20091022212532.23a0b972@shibato.opal.com> <1256270523.54447.113.camel@shumai.marcuscom.com> <20091023013730.6300fd64@shibato.opal.com> <1256276672.54447.130.camel@shumai.marcuscom.com> <20091023141921.7aaecf23@shibato.opal.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-v0Kpzg7aQBu/K/8Hv4vO" Organization: MarcusCom, Inc. Date: Sat, 24 Oct 2009 02:35:42 -0400 Message-Id: <1256366142.54447.188.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on creme-brulee.marcuscom.com Cc: freebsd-gnome@freebsd.org Subject: Re: hal truncating block.device on freebsd-8.0rc1 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2009 06:35:32 -0000 --=-v0Kpzg7aQBu/K/8Hv4vO Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2009-10-23 at 14:19 -0400, J.R. Oldroyd wrote: > On Fri, 23 Oct 2009 01:44:32 -0400, Joe Marcus Clarke wrote: > > > > On Fri, 2009-10-23 at 01:37 -0400, J.R. Oldroyd wrote: > > > On Fri, 23 Oct 2009 00:02:03 -0400, Joe Marcus Clarke wrote: > > > >=20 > > > > Hal doesn't support volumes with spaces in their names. This is > > > > documented in the FreeBSD HAL FAQ at > > > > http://www.freebsd.org/gnome/docs/halfaq.html . Patches to add sup= port > > > > for this are very welcome. > > > >=20 > > > > Joe > > > >=20 > > >=20 > > > That doc, and some googling which found two year old email from you, > > > show that this is apparently a long-standing problem with geom/glabel= . > > >=20 > > > Any pointers on where the defective code might lie? > >=20 > > hald/freebsd/hf-storage.c. The fix would be to process > > kern.geom.confxml instead of kern.geom.conftxt. > >=20 > > Joe > >=20 >=20 > I have a simple patch to the conftxt parser that looks for LABEL > lines and appends fields until the "i" field is in the right > place. This fixes things for this camera. >=20 > I have no other devices at hand to test to see if anything broke, > however. >=20 > The replacement files/patch-hald_hf-storage.c with the additional > patch is here: > http://opal.com/jr/hal/patch-hald_hf-storage.c Thanks. I believe this will work given that the format of conftxt looks to be consistent across 6.X, 7.X, 8.X, and 9.X. I've modified the patch some for safety and style, and added it to hal-0.5.13 which will be committed with GNOME 2.28 when 8.0 is released. Joe >=20 > By the way, the patch file should probably be renamed to > files/patch-hald_freebsd_hf-storage.c for consistency with the > other patch files there. >=20 > -jr >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-v0Kpzg7aQBu/K/8Hv4vO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEABECAAYFAkrioDwACgkQb2iPiv4Uz4caNQCfR+T6+plsRNapJdmWaq3oGaw+ xlUAn3bPXRIJjIXJTM2UibReNf0p0v9Y =Rp6r -----END PGP SIGNATURE----- --=-v0Kpzg7aQBu/K/8Hv4vO--