Package: lsof
Version: 4.77.dfsg.1-3
Severity: normal
Hi,
using lsof to investigate why I can't remount /usr read-only, I found
a strange issue. I know there was much discussion on similar topics
already, but thought I would report this nevertheless for you to judge
if it's a known issue or not. After downgrading my sip-tester package:
$ sudo mount /usr -oremount,ro
mount: /usr is busy
$ lsof /usr | grep sipp
lsof: WARNING: can't stat() xfs file system /dev/.static/dev
Output information may be incomplete.
sipp 15613 sysm mem REG 253,1 2335511 /usr/bin/sipp
(path inode=2321084)
[...]
Fine, I knew who the culprit was. But my script for the job didn't find
it, and here's why:
$ sudo lsof /usr | grep sipp
sipp 15613 sysm txt REG 253,1 240224 2335511 /usr/bin/sipp
[...]
Looks like lsof, when run as root, doesn't include the trailing "path
inode" info, which it was looking for. It outputs the size of the old
inode instead, probably via its elevated rights (sysm is a system user).
I think it's a bug that the "path inode" signature is missing from root's
output, making such investigation harder than necessary.
Thanks,
Feri.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages lsof depends on:
ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries
lsof recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]