From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 25 19:50:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C338F16A41F for ; Tue, 25 Oct 2005 19:50:33 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5497C43D48 for ; Tue, 25 Oct 2005 19:50:33 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: by wproxy.gmail.com with SMTP id i5so95063wra for ; Tue, 25 Oct 2005 12:50:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YTL5NY5J96wCSvG+7Ulxj5YUFg4p7Fl4Ol/OVTapN8tiuU5OMxziDDlKgUHgSltNrUwlvAO2R60SuUfrLxrJW5FdzMQNPtHcSBvNLh/lD+6mph2n11wyNJ+ZIeR8ovNeksvdt4FOOPmd9FVCc0yTx081sZqarpDT+LnZwhvNhWI= Received: by 10.54.62.2 with SMTP id k2mr39294wra; Tue, 25 Oct 2005 12:50:32 -0700 (PDT) Received: by 10.54.91.4 with HTTP; Tue, 25 Oct 2005 12:50:32 -0700 (PDT) Message-ID: <49402550510251250g66a89037q9a1eb3bdbedf94c3@mail.gmail.com> Date: Tue, 25 Oct 2005 22:50:32 +0300 From: victor cruceru To: Daniel Rudy In-Reply-To: <435E6F9C.9090008@pacbell.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <49402550510240728y555979c9i2fe4adc73137a1e7@mail.gmail.com> <435E6F9C.9090008@pacbell.net> Cc: freebsd-hackers@freebsd.org Subject: Re: devinfo(3) problem... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: soc-victor@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 19:50:33 -0000 Hi Daniel, Yes, this is the fix. And yes, I think that the bug was reported (at least on a mailing list...) BTW: I dare to suggest to fully upgrade your system to the "latest" 6.0, it is a huge step forward from 5.4. Before doing this you may want to give it a try by booting from a CD and check that your hw is fully functional (and detected). To check if it is your mistake or another bug in libdevinfo, you may want to run the associated tool (man -k devinfo). Hope this helps. On 10/25/05, Daniel Rudy wrote: > At about the time of 10/24/2005 7:28 AM, victor cruceru stated the > following: > > Daniel, > > What is the OS version you are using when this is happening? > > Did you try to update the libdevinfo (using cvsup for example) to a > > newer version? > > I think that under the original 5.4 it is a bug in devinfo(4) with the > > described behaviour below. > > I'm running 5.4-RELEASE. > > When you mentioned that it might be a bug, I went and looked at > /usr/src/lib/libdevinfo/devinfo.c using the cvs web depository. I found > that devinfo_generation =3D 0 was added to the end of the devinfo_free > function starting at line 367. I added the code and recompiled just > that library, and now everything seems to be working ok, except now I'm > getting a bunch of garbage on the serial number of the USB flash drive. > I'm not sure if it's my code, or if it's a bug in the library. > > -- > Daniel Rudy > -- victor cruceru ------------------------------------------------ Non est respondendum ad omnia. ( Cicero, Pro Murena Oratio ) ------------------------------------------------