Date: Wed, 18 Apr 2007 18:38:31 -0400 (EDT) From: Mikhail Teterin <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/111835: fstat(1) fails to report certain files Message-ID: <200704182238.l3IMcVXH031976@symbion.zaytman.com> Resent-Message-ID: <200704182310.l3INA9rN029388@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111835 >Category: bin >Synopsis: fstat(1) fails to report certain files >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 18 23:10:09 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: Virtual Estates, Inc. http://sybpipe.com/ >Environment: System: FreeBSD symbion.zaytman.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Tue Nov 7 23:40:58 EST 2006 root@symbion.zaytman.com:/usr/obj/ibm/src/sys/SYMBION i386 >Description: I noticed, I could not play sound any more: Can't open /dev/dsp! So I tried to check, which process may hold the /dev/dsp* or /dev/audio* using fstat: % fstat /dev/dsp* /dev/audio* USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME % Puzzled, I decided to give lsof a try: % lsof | grep dsp artsd 105 anat 11u VCHR 0,40 0x2372d3000 40 /dev/dsp0.0 artsd 105 anat 11u VCHR 0,40 0x2372d3000 40 /dev/dsp0.0 artsd 105 anat 11u VCHR 0,40 0x2372d3000 40 /dev/dsp0.0 So, for whatever reason, fstat failed -- and needs to be fixed... >How-To-Repeat: >Fix: Use lsof... >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704182238.l3IMcVXH031976>