Commit 62f20673 authored by Ramon Nou's avatar Ramon Nou
Browse files

fix(client): bypass synthetic dentry cache metadata for symlinks

parent 9688d48f
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for src/client/preload_util.cpp: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -334,7 +334,8 @@ get_metadata(const string& path, bool follow_links, bool include_inline) {
            auto parent = p.parent_path().string();
            auto filename = p.filename().string();
            auto cache_entry = CTX->dentry_cache()->get(parent, filename);
            if(cache_entry) {
            if(cache_entry &&
               cache_entry->file_type != gkfs::filemap::FileType::symlink) {
                LOG(DEBUG, "{}(): Dentry cache hit for file '{}'", __func__,
                    path);
                // if cache_entry exists, generate a Metadata object from it.