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:
Greg Farnum 2010-11-17 09:58:38 -08:00
parent f18609e88a
commit c43455cee4

View File

@ -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);