Skip to content
Snippets Groups Projects
Commit c2f1b249 authored by Thibault Allançon's avatar Thibault Allançon
Browse files

fuse: invalidate kernel cache when removing inode

parent 26ee05f3
No related branches found
No related tags found
No related merge requests found
......@@ -60,9 +60,6 @@ class Fuse(pyfuse3.Operations):
self._next_inode += 1
self._inode2entry[inode] = entry
# TODO add inode recycling with invocation to invalidate_inode when
# the dicts get too big
return inode
def _remove_inode(self, inode: int) -> None:
......@@ -71,6 +68,11 @@ class Fuse(pyfuse3.Operations):
except KeyError:
pass
try:
pyfuse3.invalidate_inode(inode)
except FileNotFoundError:
pass
def inode2entry(self, inode: int) -> FuseEntry:
""" Return the entry matching a given inode """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment