 curvefs client删除文件和目录功能设计2. 3. 1. */ void (*rmdir) (fuse_req_t req, fuse_ino_t parent, const char *name); 其中的注释内容总结如下: 当lookup count在fuse_reply_entry和fuse_reply_create时增加1 当内核移除其inode cache时,会调用forget,此时lookup 儿inode。 moosefs由于只有一个mds节点看,所以不存在这个问题。 chubaofs的解决方案是: 在Delete_ll(api.go) 函数中,在delete dentry后有一段注释如下: // dentry is deleted successfully but inode is not, still returns success. 此时,nlink是没有-1的,删除接口直接忽略了第二步的错误。0 码力 | 15 页 | 325.42 KB | 6 月前3 curvefs client删除文件和目录功能设计2. 3. 1. */ void (*rmdir) (fuse_req_t req, fuse_ino_t parent, const char *name); 其中的注释内容总结如下: 当lookup count在fuse_reply_entry和fuse_reply_create时增加1 当内核移除其inode cache时,会调用forget,此时lookup 儿inode。 moosefs由于只有一个mds节点看,所以不存在这个问题。 chubaofs的解决方案是: 在Delete_ll(api.go) 函数中,在delete dentry后有一段注释如下: // dentry is deleted successfully but inode is not, still returns success. 此时,nlink是没有-1的,删除接口直接忽略了第二步的错误。0 码力 | 15 页 | 325.42 KB | 6 月前3
共 1 条
- 1













