From c4ab37c02e9edc23d0637e23d6f2b42d0827dad2 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Thu, 1 Jan 2015 15:16:41 +0000 Subject: 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 Reviewed-on: http://review.gluster.org/9375 Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Niels de Vos Tested-by: Gluster Build System Reviewed-by: Shyamsundar Ranganathan Reviewed-by: Vijay Bellur --- libglusterfs/src/syncop.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libglusterfs/src/syncop.c') diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index e830d830229..c2794732522 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -1388,12 +1388,13 @@ syncop_listxattr (xlator_t *subvol, loc_t *loc, dict_t **dict) } int -syncop_getxattr (xlator_t *subvol, loc_t *loc, dict_t **dict, const char *key) +syncop_getxattr (xlator_t *subvol, loc_t *loc, dict_t **dict, const char *key, + dict_t *xdata) { struct syncargs args = {0, }; SYNCOP (subvol, (&args), syncop_getxattr_cbk, subvol->fops->getxattr, - loc, key, NULL); + loc, key, xdata); if (dict) *dict = args.xattr; @@ -1406,12 +1407,13 @@ syncop_getxattr (xlator_t *subvol, loc_t *loc, dict_t **dict, const char *key) } int -syncop_fgetxattr (xlator_t *subvol, fd_t *fd, dict_t **dict, const char *key) +syncop_fgetxattr (xlator_t *subvol, fd_t *fd, dict_t **dict, const char *key, + dict_t *xdata) { struct syncargs args = {0, }; SYNCOP (subvol, (&args), syncop_getxattr_cbk, subvol->fops->fgetxattr, - fd, key, NULL); + fd, key, xdata); if (dict) *dict = args.xattr; -- cgit