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 /
This is a known issue, that I'm waiting for some help from the kernel folks on.
fixed as of 4.96.1 (16/September/2022)