diff --git a/meta/source/storage/InodeFileStore.cpp b/meta/source/storage/InodeFileStore.cpp index 1472efab..f062eba5 100644 --- a/meta/source/storage/InodeFileStore.cpp +++ b/meta/source/storage/InodeFileStore.cpp @@ -209,6 +209,10 @@ bool InodeFileStore::closeFile(EntryInfo* entryInfo, FileInode* inode, unsigned if(iter != this->inodes.end() ) { // outInode exists + FileInodeReferencer* inodeRefer = iter->second; + if(inodeRefer->getReferencedObject() != inode) + return false; + *outNumHardlinks = inode->getNumHardlinks(); // Store inode information on disk, they have been set with inode->setDynAttribs() before