i386/91580: fstat not working properly?

Bob McClure h8msft at gmail.com
Mon Jan 9 21:30:09 PST 2006


>Number:         91580
>Category:       i386
>Synopsis:       fstat not working properly?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 10 05:30:07 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Bob McClure
>Release:        FreeBSD 6.0-RELEASE
>Organization:
Vestcom
>Environment:
FreeBSD lr-netcom-01.vestcomretail.com 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Sat Dec 17 09:58:03 CST 2005     bobm at lr-netcom-02.vestcomretail.com:/usr/src/sys/i386/compile/GENERIC  i386
              
>Description:
I have been relying on fstat to verify that files are closed before processing in batch FreeBSD 5.3-RELEASE and parsing the output.  6.0-RELEASE does not report open files in the same manner.

>How-To-Repeat:
5.3-RELEASE:
  ;cd /var/log
  ;fstat messages
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root     syslogd      296    9 /var      16486 -rw-r--r--   79798  w  messages


6.0-RELEASE:
  ;cd /var/log
  fstat messages
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
(no output)            
>Fix:
              
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-i386 mailing list