How to VOP_RECLAIM on demand?
Alan Somers
asomers at freebsd.org
Mon Jun 3 22:27:41 UTC 2019
On Mon, Jun 3, 2019 at 3:15 PM Konstantin Belousov <kostikbel at gmail.com> wrote:
>
> On Mon, Jun 03, 2019 at 02:38:11PM -0600, Alan Somers wrote:
> > It would be useful if I could trigger VOP_RECLAIM on demand for a
> > certain file or pathname. There are some edge cases in fusefs that I
> > can't test otherwise. But I don't see any way to do it. Is such a
> > thing possible? Would it be worth adding a special syscall for this
> > purpose? It could be guarded with INVARIANTS so it wouldn't affect
> > production builds.
>
> Look at revoke(2) and VOP_REVOKE(). It is only implemented and used
> for devfs tty nodes.
I don't understand how that would help. What does VOP_REVOKE have in
common with VOP_RECLAIM?
More information about the freebsd-hackers
mailing list