summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/pump.c
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2010-09-07 10:40:57 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-07 10:50:23 -0700
commit8c8e5b25779f68c646ec00003a7bb2101e55cbc0 (patch)
treebcedd1cfa8e3797252b58b8b01f09a51d0842b6c /xlators/cluster/afr/src/pump.c
parent6b4784d5382fb3177e423751eb8d056e8bf384b4 (diff)
cluster/afr: Various self heal fixes wrt gfid.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/cluster/afr/src/pump.c')
-rw-r--r--xlators/cluster/afr/src/pump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c
index 5b31d389b28..5e2c2d43aca 100644
--- a/xlators/cluster/afr/src/pump.c
+++ b/xlators/cluster/afr/src/pump.c
@@ -528,6 +528,8 @@ build_root_loc (inode_t *inode, loc_t *loc)
loc->inode = inode;
loc->ino = 1;
loc->inode->ino = 1;
+ memset (loc->inode->gfid, 0, 16);
+ loc->inode->gfid[15] = 1;
}