summaryrefslogtreecommitdiffstats
path: root/heal
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2015-01-01 15:16:41 +0000
committerVijay Bellur <vbellur@redhat.com>2015-01-05 22:00:09 -0800
commitc4ab37c02e9edc23d0637e23d6f2b42d0827dad2 (patch)
tree0dc06a6b8288ff8f33b47ad7d98ee4daffe74af4 /heal
parentb8e3b91b8180dcc5e9f8bb62734832ace69ad143 (diff)
libglusterfs: change signature of syncop_(f)getxattr
Pass xdata dict to syncop_(f)getxattr calls. This patch [1/3] is required as a part of afr automated split-brain resolution implementation. Change-Id: I3970b3dd6daf64681a031e37f8e9afb14fb3d668 BUG: 1136769 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/9375 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'heal')
-rw-r--r--heal/src/glfs-heal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index c52a46bd709..10607ea9155 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -51,7 +51,8 @@ glfsh_get_index_dir_loc (loc_t *rootloc, xlator_t *xl, loc_t *dirloc,
struct iatt iattr = {0};
struct iatt parent = {0};
- ret = syncop_getxattr (xl, rootloc, &xattr, GF_XATTROP_INDEX_GFID);
+ ret = syncop_getxattr (xl, rootloc, &xattr, GF_XATTROP_INDEX_GFID,
+ NULL);
if (ret < 0) {
*op_errno = -ret;
goto out;
@@ -128,7 +129,7 @@ glfsh_gfid_to_path (xlator_t *this, xlator_t *subvol, uuid_t gfid, char **path_p
uuid_copy (loc.gfid, gfid);
loc.inode = inode_new (this->itable);
- ret = syncop_getxattr (subvol, &loc, &xattr, GFID_TO_PATH_KEY);
+ ret = syncop_getxattr (subvol, &loc, &xattr, GFID_TO_PATH_KEY, NULL);
if (ret)
goto out;
@@ -216,7 +217,8 @@ glfsh_process_entries (xlator_t *xl, fd_t *fd, gf_dirent_t *entries,
uuid_parse (entry->d_name, gfid);
uuid_copy (loc.gfid, gfid);
- ret = syncop_getxattr (this, &loc, &dict, GF_AFR_HEAL_INFO);
+ ret = syncop_getxattr (this, &loc, &dict, GF_AFR_HEAL_INFO,
+ NULL);
if (ret)
continue;
@@ -292,7 +294,8 @@ glfsh_print_brick (xlator_t *xl, loc_t *rootloc)
char *brick_start = NULL;
char *brick_end = NULL;
- ret = syncop_getxattr (xl, rootloc, &xattr, GF_XATTR_PATHINFO_KEY);
+ ret = syncop_getxattr (xl, rootloc, &xattr, GF_XATTR_PATHINFO_KEY,
+ NULL);
if (ret < 0)
goto out;