Bug 260235 - sysutils/lsof: filenames missing on FreeBSD >= 13, due to namecache field change
Summary: sysutils/lsof: filenames missing on FreeBSD >= 13, due to namecache field change
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-05 11:09 UTC by Damjan Jovanovic
Modified: 2021-12-18 16:17 UTC (History)
1 user (show)

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 Damjan Jovanovic 2021-12-05 11:09:06 UTC
In sys/kern/vfs_cache.c struct namecache nc_hash field changed from a doubly linked list to a singly linked list in commit 2b86f9d6d013a9ad8b1f8d03286018e785d5b3f6, breaking reading filenames in lsof. (Yes, it was almost impossible to debug)

Patch submitted upstream at https://github.com/lsof-org/lsof/pull/180 but until its merged we may want to apply it to our port.
Comment 1 Graham Perrin freebsd_committer 2021-12-18 16:17:47 UTC
(In reply to Damjan Jovanovic from comment #0)

Noted with thanks: 

Use user mode APIs on FreeBSD by DamjanJovanovic · Pull Request #184 · lsof-org/lsof
<https://github.com/lsof-org/lsof/pull/184>