Skip to content
Commit 7118883b authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: use mtime for readdir cache verification



Store the modification time of the directory in the cache, obtained before
starting to fill the cache.

When reading the cache, verify that the directory hasn't changed, by
checking if current modification time is the same as the one stored in the
cache.

This only needs to be done when the current file position is at the
beginning of the directory, as mandated by POSIX.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 3494927e
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