Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 1995 23:09:08 +0200 (MET DST)
From:      roberto@blaise.ibp.fr (Ollivier Robert)
To:        hackers@FreeBSD.org (Hackers' list FreeBSD)
Subject:   Name cache handling and lsof
Message-ID:  <199505092109.XAA04868@blaise.ibp.fr>

next in thread | raw e-mail | index | archive | help
The new name cache handling seems to have broken lsof (even 3.26). It does
not even compile.

cc -O -DCANDOCHILD  -DLSOF -D_FREEBSDV=200 -DN_UNIX=\"/kernel\" -I./dialects/freebsd/include/2 -c dproc.c
dproc.c: In function `ncache_load':
dproc.c:651: structure has no member named `nc_nxt'
*** Error code 1

Stop.

The new inpcb code seemed to have confused lsof as well.
Here is the output of the recently 2.0-RELEASE ported binary :

208 [23:03] root@keltia:~# lsof
lsof: WARNING: can't read name cache pointer: 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
COMMAND     PID     USER   FD   TYPE     DEVICE   SIZE/OFF  INODE NAME
swapper       0     root  cwd   VDIR     4,   0        512      2 / (/dev/sd0a)
init          1     root  cwd   VDIR     4,   0        512      2 / (/dev/sd0a)
pagedaemo     2     root  cwd   VDIR     4,   0        512      2 / (/dev/sd0a)
vmdaemon      3     root  cwd   VDIR     4,   0        512      2 / (/dev/sd0a)
update        4     root  cwd   VDIR     4,   0        512      2 / (/dev/sd0a)
syslogd      60     root  cwd   VDIR     4,   0        512      2 / (/dev/sd0a)
syslogd      60     root    0u  VCHR     2,   2        0x0    495 /dev/null
syslogd      60     root    1u  VCHR     2,   2        0x0    495 /dev/null
syslogd      60     root    2u  VCHR     2,   2        0x0    495 /dev/null
syslogd      60     root    3r  VREG     4,  19       3196    147 /usr (/dev/sd2d)
syslogd      60     root    4u  unix 0xf078a900        0x0        /dev/log
syslogd      60     root    5u  inet                   0x0    UDP can't read inpcb at 0xf078ec80
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Any ideas on how to fix it ?
-- 
Ollivier ROBERT     -=- The daemon is FREE! -=-     roberto@FreeBSD.ORG
FreeBSD keltia 2.0-BUILT-19950503 #3: Wed May  3 19:53:04 MET DST 1995



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505092109.XAA04868>