diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-05-04 04:14:02 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-04 05:00:03 -0700 |
commit | 53af855f2aad8c19f2bbc7561534b473ae8c7dc4 (patch) | |
tree | 0909fa65008c986fcb32dbbba457f5ccb3d2a8c0 /xlators/cluster/afr/src/afr-common.c | |
parent | 0336456447f636f6fcf8e53bbfb6295d40434fdf (diff) |
cluster/afr: set loc gfids for fresh lookup
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 682c5854ad4..b1dd649ae0d 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -497,6 +497,16 @@ afr_up_children_count (int child_count, unsigned char *child_up) return ret; } +void +afr_update_loc_gfids (loc_t *loc, struct iatt *buf, struct iatt *postparent) +{ + GF_ASSERT (loc); + GF_ASSERT (buf); + + uuid_copy (loc->gfid, buf->ia_gfid); + if (postparent) + uuid_copy (loc->pargfid, postparent->ia_gfid); +} ino64_t afr_itransform (ino64_t ino, int child_count, int child_index) |