Re: fcntl F_KINFO for

From: Paul Floyd <paulf2718_at_gmail.com>
Date: Fri, 27 May 2022 21:40:45 UTC
Hi Konstantin

> When open(2) creates a new file, the vnode name is not entered into
> the name cache.  I believe this is done to smoother the case like
> untarring large set of files, which would replace existing cached
> entries with probably not too useful new entries.
>
> F_KINFO uses name cache to reconstruct the last element of the path,
> on most real file systems like UFS.  If this last element is not cached,
> F_KINFO is unable to return the path.

OK, thanks. I'll keep the old KERN_PROC_FILEDESC code then, which seems 
to work better

(though I do have one issue since FrereBSD 13 in code that does a fork()).

A+

Paul