From owner-freebsd-current@FreeBSD.ORG Thu Jan 1 18:17:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 572CC16A4CE for ; Thu, 1 Jan 2004 18:17:30 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 003E343D39 for ; Thu, 1 Jan 2004 18:17:28 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) i022HRZV007614; Thu, 1 Jan 2004 21:17:27 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)i022HQSL007611; Thu, 1 Jan 2004 21:17:27 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Thu, 1 Jan 2004 21:17:26 -0500 (EST) From: Andre Guibert de Bruet To: Ryan Sommers In-Reply-To: <1072941085.671.8.camel@localhost> Message-ID: <20040101211330.D6124@alpha.siliconlandmark.com> References: <1072941085.671.8.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean cc: freebsd-current@freebsd.org Subject: Re: Snd_ich/pcm, Devfs or ls bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2004 02:17:30 -0000 On Thu, 1 Jan 2004, Ryan Sommers wrote: > Came across this little oddity while playing with audio: > > root@lilshadow(/sys/dev/sound/pci):cd /dev > root@lilshadow(/dev):ls -l mixer* > crw-rw-rw- 1 root wheel 30, 0 Jan 1 00:41 mixer0 > root@lilshadow(/dev):ls -l mixer > crw-rw-rw- 1 root wheel 30, 0 Jan 1 00:41 mixer > root@lilshadow(/dev) > > I don't believe this is an ls(1) bug since an audio app couldn't find > /dev/mixer. Trying to symlink mixer0 to mixer fails with file exists as > well. > > If you need any more info let me know. > > PS If the problem is in ls(1) there is a patch on bin/59320 to fix a > formatting issue with the '-h' option. Ryan, This is a FAQ. FreeBSD supports on-the-fly device creation. This means that a device might exist when lstat() is called on it but it will not be found when readdir() steps through the /dev directory. Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ >