Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2019 18:02:06 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Adding namecache entries outside of vfs_lookup and vn_open ?
Message-ID:  <CAOtMX2inYez8dXbmA5b1wj9Uhh_Nbp-gnFmtT_=T1mpWdyAUVw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
It looks like lookup and open are the only common vops that create new
namecache entries.  At least, those are the only ones that set
MAKEENTRY in the cn_flags field.  However, fuse(4)'s create-like
operations (FUSE_CREATE, FUSE_SYMLINK, etc) all return enough
information to create a namecache entry for the newly created file.
As-is, an operation like FUSE_CREATE will almost always be followed up
by a FUSE_LOOKUP, necessitating an extra round-trip to userland.

Would it be possible and wise to add these newly created entries to
the namecache automatically?

-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2inYez8dXbmA5b1wj9Uhh_Nbp-gnFmtT_=T1mpWdyAUVw>