Bug 245691 - sysutils/lsof: missed txt on ZFS
Summary: sysutils/lsof: missed txt on ZFS
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-17 12:00 UTC by Dmitry Morozovsky
Modified: 2020-04-17 13:38 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ler)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Morozovsky freebsd_committer 2020-04-17 12:00:28 UTC
on contemporary|supported FreeBSD versions (11/12) lsof is failed to find link to txt inode if it is within ZFS file system:

# mount
/dev/mirror/m0a on / (ufs, local, noatime, journaled soft-updates)
# lsof -n -p 1
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
init      1 root  cwd   VDIR   0,96     1024      2 /
init      1 root  rtd   VDIR   0,96     1024      2 /
init      1 root  txt   VREG   0,96  1135832 461924 /sbin/init

# mount | head -1
z/R on / (zfs, local, noatime, nfsv4acls)
# lsof -n -p 1
COMMAND PID USER   FD   TYPE        DEVICE SIZE/OFF NODE NAME
init      1 root  cwd   VDIR 200,445775885       37    4 /
init      1 root  rtd   VDIR 200,445775885       37    4 /
Comment 1 Larry Rosenman freebsd_committer 2020-04-17 13:38:13 UTC
This is a known issue, that I'm waiting for some help from the kernel folks on.