mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
client: Remove the I_COMPLETE flag from the parent directory in relink_inode.
This papers over issues arising from the client's lack of proper support for hard links, and lets it pass the snaptest-upchildrealms test.
This commit is contained in:
parent
f18609e88a
commit
c43455cee4
@ -1022,6 +1022,9 @@ protected:
|
||||
// unlink old dn from dir
|
||||
olddir->dentries.erase(olddn->name);
|
||||
olddir->dentry_map.erase(olddn->name);
|
||||
// HACK: in the case of hard links. Resolving #588 should include
|
||||
// rendering this unnecessary.
|
||||
olddir->parent_inode->flags &= ~I_COMPLETE;
|
||||
olddn->inode = 0;
|
||||
olddn->dir = 0;
|
||||
lru.lru_remove(olddn);
|
||||
|
Loading…
Reference in New Issue
Block a user