Bug 245691

Summary: sysutils/lsof: missed txt on ZFS
Product: Ports & Packages Reporter: Dmitry Morozovsky <marck>
Component: Individual Port(s)Assignee: Larry Rosenman <ler>
Status: New ---    
Severity: Affects Many People CC: grahamperrin
Priority: --- Flags: bugzilla: maintainer-feedback? (ler)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244601

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.