Skip to content
Commit 3494927e authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: add readdir cache version



Allow the cache to be invalidated when page(s) have gone missing.  In this
case increment the version of the cache and reset to an empty state.

Add a version number to the directory stream in struct fuse_file as well,
indicating the version of the cache it's supposed to be reading.  If the
cache version doesn't match the stream's version, then reset the stream to
the beginning of the cache.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 5d7bc7e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment