From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 25 17:47:07 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 6B31716A41F for ; Tue, 25 Oct 2005 17:47:07 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: from smtp105.sbc.mail.mud.yahoo.com (smtp105.sbc.mail.mud.yahoo.com [68.142.198.204]) by mx1.FreeBSD.org (Postfix) with SMTP id B2EAB43D46 for ; Tue, 25 Oct 2005 17:47:04 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 26622 invoked from network); 25 Oct 2005 17:47:04 -0000 Received: from unknown (HELO ?192.168.0.190?) (dr2867.business@pacbell.net@68.126.211.246 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 25 Oct 2005 17:47:03 -0000 Message-ID: <435E6F9C.9090008@pacbell.net> Date: Tue, 25 Oct 2005 10:47:08 -0700 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 5.4-RELEASE-p7; en-US; ja-JP; rv:1.7.12) Gecko/20050915 MultiZilla/1.6.2.0c Mnenhy/0.7.2.0 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: soc-victor@freebsd.org References: <49402550510240728y555979c9i2fe4adc73137a1e7@mail.gmail.com> In-Reply-To: <49402550510240728y555979c9i2fe4adc73137a1e7@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: devinfo(3) problem... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 17:47:07 -0000 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 = 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