summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syncop.h
diff options
context:
space:
mode:
authorkarthik-us <ksubrahm@redhat.com>2018-04-26 12:38:23 +0530
committerkarthik-us <ksubrahm@redhat.com>2018-04-27 11:57:47 +0530
commitaa981531458a6d6e279f9a9a26f7c61b24cc14ab (patch)
treea165f07b43799cf7b2cc8bf80520cabf78b2344c /libglusterfs/src/syncop.h
parent69c35dbb4b3b92c60cbce8dff58e9d1399820b0d (diff)
libglusterfs: Capture the dict response in syncop_xattrop_cbk
Problem: Currently it is not possible to capture the xattrs values which are set on the bricks by calling syncop_(f)xattrop, because the response dict is not being assigned to any of the dictionaries. Fix: In the xattrop callback capture the response dict and send it back to the caller if it is requested. Change-Id: I9de9bcd97d6008091c9b060bcca3676cb9ae8ef9 fixes: bz#1572076 Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r--libglusterfs/src/syncop.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h
index 367204d05b7..3000d2e74c9 100644
--- a/libglusterfs/src/syncop.h
+++ b/libglusterfs/src/syncop.h
@@ -159,6 +159,7 @@ struct syncargs {
dict_t *xdata;
struct gf_flock flock;
struct gf_lease lease;
+ dict_t *dict_out;
/* some more _cbk needs */
uuid_t uuid;
@@ -544,11 +545,13 @@ int syncop_lease (xlator_t *subvol, loc_t *loc, struct gf_lease *lease,
int syncop_ipc (xlator_t *subvol, int op, dict_t *xdata_in, dict_t **xdata_out);
int syncop_xattrop (xlator_t *subvol, loc_t *loc, gf_xattrop_flags_t flags,
- dict_t *dict, dict_t *xdata_in, dict_t **xdata_out);
+ dict_t *dict, dict_t *xdata_in, dict_t **dict_out,
+ dict_t **xdata_out);
int
syncop_fxattrop (xlator_t *subvol, fd_t *fd, gf_xattrop_flags_t flags,
- dict_t *dict, dict_t *xdata_in, dict_t **xdata_out);
+ dict_t *dict, dict_t *xdata_in, dict_t **dict_out,
+ dict_t **xdata_out);
int
syncop_seek (xlator_t *subvol, fd_t *fd, off_t offset, gf_seek_what_t what,