Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2022 23:40:45 +0200
From:      Paul Floyd <paulf2718@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: fcntl F_KINFO for
Message-ID:  <1095d74e-f90f-049f-2cff-ee284c197a4a@gmail.com>
In-Reply-To: <YoAIoi8VqHjnIw8t@kib.kiev.ua>
References:  <5e7863b6-4c57-16a2-0b54-655defefb347@gmail.com> <YoAIoi8VqHjnIw8t@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1095d74e-f90f-049f-2cff-ee284c197a4a>