From owner-freebsd-geom@FreeBSD.ORG Tue Jan 5 06:29:03 2010 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 779C1106568B for ; Tue, 5 Jan 2010 06:29:03 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 164EF8FC0C for ; Tue, 5 Jan 2010 06:29:02 +0000 (UTC) Received: (qmail 61358 invoked from network); 5 Jan 2010 06:29:02 -0000 Received: from unknown (HELO ?192.168.0.2?) (spawk@69.123.45.64) by acm.poly.edu with AES256-SHA encrypted SMTP; 5 Jan 2010 06:29:02 -0000 Message-ID: <4B42DC02.30607@acm.poly.edu> Date: Tue, 05 Jan 2010 01:28:18 -0500 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: freebsd-geom@freebsd.org, martinko References: <20100103013537.GK3508@acme.spoerlein.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: gstat: geom_gettree = -1: No such file or directory 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: Tue, 05 Jan 2010 06:29:03 -0000 martinko wrote: > Yes, you're right and now I think I know what may cause this bug and it > worries me even more -- my FAT32 partition has a funny name but it for > sure was not like this before: > > $ ll /dev/msdosfs/ > crw-r----- 1 root operator 0, 95 Jan 3 09:28 FREEDOS > crw-r----- 1 root operator 0, 103 Jan 3 09:28 01wb? > > Here's the complete output you asked for: > http://mato.gamato.org/freebsd/aw1n/kern.geom.confxml-8.0 > > Cheers, > > Martin > > PS: I've just read about some msdosfs issues and I'm very much worried > that my partition data might be corrupted. :-/ Indeed, my guess is that geom_gettree() is unhappy because something in src/lib/libgeom/geom_xml2tree.c does not like the unprintable character in the msdosfs label. I tried tracking down the exact location, but found the code a bit hard to follow. Anyway, you can try removing GEOM_LABEL from your kernel, which will remove that msdosfs label from the XML, which should allow geom_gettree(), and thus gstat, to work. As for the msdosfs or partition problems, I'm afraid I can't be of much help. -Boris