Date: Thu, 1 Jan 2004 21:17:26 -0500 (EST) From: Andre Guibert de Bruet <andy@siliconlandmark.com> To: Ryan Sommers <ryans@gamersimpact.com> Cc: freebsd-current@freebsd.org Subject: Re: Snd_ich/pcm, Devfs or ls bug? Message-ID: <20040101211330.D6124@alpha.siliconlandmark.com> In-Reply-To: <1072941085.671.8.camel@localhost> References: <1072941085.671.8.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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/ >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040101211330.D6124>