main: force a dir reload after a move

if the directory was moved, invalidate its cache and force a reload.

Closes: https://github.com/containers/fuse-overlayfs/issues/160

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-01-08 13:22:18 +01:00
parent a6f9e32639
commit b29a8f1587
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -4176,6 +4176,8 @@ ovl_rename_direct (fuse_req_t req, fuse_ino_t parent, const char *name,
if (update_paths (node) < 0)
goto error;
node->loaded = 0;
ret = 0;
goto cleanup;