Subject: pkg/7108: lsof package does not recognize files
To: None <gnats-bugs@gnats.netbsd.org>
From: Marc Horowitz <marc@mit.edu>
List: netbsd-bugs
Date: 03/08/1999 11:49:59
>Number:         7108
>Category:       pkg
>Synopsis:       lsof package does not recognize files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar  8 09:05:00 1999
>Last-Modified:
>Originator:     Marc Horowitz
>Organization:

>Release:        -current about March 6
>Environment:

System: NetBSD horowitz.ne.mediaone.net 1.3K NetBSD 1.3K (MARC) #56: Sat Mar 6 03:51:38 EST 1999 marc@horowitz.ne.mediaone.net:/u1/netbsd/src/sys/arch/i386/compile/MARC i386


>Description:

Using -current (about 2 days old), and lsof (about 2 minutes old),
lsof doesn't seem to recognize normal or special files:

> lsof -c lsof
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
lsof    22573 marc  cwd                             unknown file system type: 0
lsof    22573 marc    0u  VNON                      
lsof    22573 marc    1u  VNON                      
lsof    22573 marc    2u  VNON                      
lsof    22573 marc    3r  VNON                      
lsof    22573 marc    4r  VNON                      
lsof    22573 marc    5r  VNON                      
lsof    22573 marc    6r                            unknown file system type: 0

It does understand unix and inet sockets:

> lsof -c zhm
COMMAND PID USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
zhm     232 root  cwd                                 unknown file system type: 0
zhm     232 root    0u  unix 0xf05300a8      0t0      ->0xf04fd0a0 
zhm     232 root    3u  inet 0xf052f060      0t0  UDP *:2104 

		Marc

>How-To-Repeat:

>Fix:
	
>Audit-Trail:
>Unformatted: