path: root/libglusterfsclient/src/libglusterfsclient.c
diff options
authorShehjar Tikoo <>2009-09-24 00:59:50 +0000
committerAnand V. Avati <>2009-09-24 01:19:20 -0700
commit7f2da3aab0f32daca97176c3bfed76c70497f9b2 (patch)
tree26dabfbafc37056e64ca0a475963509ecb48b14f /libglusterfsclient/src/libglusterfsclient.c
parent13b4437770fadf3089e37bdedd0fe689e79c87f9 (diff)
libglusterfsclient: Re-validate root inode on every path resolution
If the root inode's is outdated, send a revalidate on it. A revalidate on root inode also reduces the window in which an op will fail over distribute because the layout of the root directory did not get constructed when we sent the lookup on root in glusterfs_init. That can happen when not all children of a distribute volume were up at the time of glusterfs_init. Signed-off-by: Anand V. Avati <> BUG: 256 (revalidates should be sent on '/' in libglusterfsclient.) URL:
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 408e4f9..8710366 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -1355,6 +1355,7 @@ glusterfs_init (glusterfs_init_params_t *init_ctx, uint32_t fakefsid)
return NULL;
libgf_client_loc_wipe (&new_loc);
+ libgf_alloc_inode_ctx (ctx, ctx->itable->root);
first_init = 0;