From owner-freebsd-geom@FreeBSD.ORG Sat Nov 10 17:30:12 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 617ED16A420 for ; Sat, 10 Nov 2007 17:30:12 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from mail.classis.ru (classis.ru [213.248.60.120]) by mx1.freebsd.org (Postfix) with ESMTP id 15A6813C4A8 for ; Sat, 10 Nov 2007 17:30:11 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from [192.168.1.34] (ppp91-76-226-75.pppoe.mtu-net.ru [91.76.226.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: citrin@citrin.ru) by mail.classis.ru (Postfix) with ESMTP id 5EEADB82E for ; Sat, 10 Nov 2007 20:29:57 +0300 (MSK) Message-ID: <4735EA87.7040306@citrin.ru> Date: Sat, 10 Nov 2007 20:29:43 +0300 From: Anton Yuzhaninov User-Agent: Thunderbird by compcn MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <4735AAE3.7070209@citrin.ru> In-Reply-To: <4735AAE3.7070209@citrin.ru> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gstat don't work on 7.0-BETA2 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2007 17:30:12 -0000 On 10.11.2007 15:58, Anton Yuzhaninov wrote: > gstat don't work on my system: > > # gstat > gstat: geom_gettree = -1: No such file or directory > > Error "No such file or directory" seems to be irrelevant to the cause of > error. It show saved errno from: > readlink("/etc/malloc.conf",0x7fffffffe1f0,1024) ERR#2 'No such file or > directory' > > But real problem in other place... > > To test I'v written simple test (attached as geom-test.c) > > which show that: > 1. geom_getxml() return xml > 2. geom_xml2tree() can't parse this xml It fail to parse xml because it contain non-ASCII symbols (in my case cyrillic in cp1251) from CD label: any But it not obvious, what is the right way to fix this bug. Remove CD from CD-ROM to run gstat is a bad workaround. Better workaround change non ASCII symbols to "_" in glabel, but it also ugly... Anyway error message should be more relevant than "No such file or directory" (errno after readlink /etc/malloc.conf). -- WBR, Anton Yuzhaninov