main: invalidate inode after unlink

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2022-11-30 15:49:46 +01:00
parent 0d8c5480d1
commit 36b482bf52
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772

1
main.c
View File

@ -3406,6 +3406,7 @@ do_rm (fuse_req_t req, fuse_ino_t parent, const char *name, bool dirp)
node_set_name (&key, (char *) name);
rm = hash_delete (pnode->children, &key);
fuse_lowlevel_notify_inval_inode (lo->se, node_to_inode (node), -1, 0);
if (rm)
{
ret = hide_node (lo, rm, true);