From c43455cee4b7b45de6bd04454a40bc7016f2d6d1 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 17 Nov 2010 09:58:38 -0800 Subject: [PATCH] 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. --- src/client/Client.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/Client.h b/src/client/Client.h index 13aae7926a9..860e9f82d5d 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -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);