diff options
author | Ravishankar N <ravishankar@redhat.com> | 2015-01-01 15:16:41 +0000 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-01-05 22:00:09 -0800 |
commit | c4ab37c02e9edc23d0637e23d6f2b42d0827dad2 (patch) | |
tree | 0dc06a6b8288ff8f33b47ad7d98ee4daffe74af4 /xlators/cluster/dht/src/dht-helper.c | |
parent | b8e3b91b8180dcc5e9f8bb62734832ace69ad143 (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 'xlators/cluster/dht/src/dht-helper.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c index e7ae5c2b002..c25646c3c5d 100644 --- a/xlators/cluster/dht/src/dht-helper.c +++ b/xlators/cluster/dht/src/dht-helper.c @@ -921,11 +921,11 @@ dht_migration_complete_check_task (void *data) if (!local->loc.inode) { ret = syncop_fgetxattr (src_node, local->fd, &dict, - conf->link_xattr_name); + conf->link_xattr_name, NULL); } else { SYNCTASK_SETID (0, 0); ret = syncop_getxattr (src_node, &local->loc, &dict, - conf->link_xattr_name); + conf->link_xattr_name, NULL); SYNCTASK_SETID (frame->root->uid, frame->root->gid); } @@ -1136,11 +1136,11 @@ dht_rebalance_inprogress_task (void *data) if (local->loc.inode) { SYNCTASK_SETID (0, 0); ret = syncop_getxattr (src_node, &local->loc, &dict, - conf->link_xattr_name); + conf->link_xattr_name, NULL); SYNCTASK_SETID (frame->root->uid, frame->root->gid); } else { ret = syncop_fgetxattr (src_node, local->fd, &dict, - conf->link_xattr_name); + conf->link_xattr_name, NULL); } if (ret < 0) { |