summaryrefslogtreecommitdiffstats
path: root/xlators/experimental
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 /xlators/experimental
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 'xlators/experimental')
-rwxr-xr-xxlators/experimental/fdl/src/gen_recon.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/experimental/fdl/src/gen_recon.py b/xlators/experimental/fdl/src/gen_recon.py
index 295df699f6e..af1765517f3 100755
--- a/xlators/experimental/fdl/src/gen_recon.py
+++ b/xlators/experimental/fdl/src/gen_recon.py
@@ -145,6 +145,10 @@ def get_special_subs (name, args, fop_type):
elif name == 'symlink':
# Swap 'linkpath' and 'loc'.
s_args_str = '&loc, linkpath, &iatt, xdata'
+ elif name == 'xattrop':
+ s_args_str = '&loc, flags, dict, xdata, NULL'
+ elif name == 'fxattrop':
+ s_args_str = 'fd, flags, dict, xdata, NULL'
else:
s_args_str = string.join (s_args, ", ")
return code, links, s_args_str, cleanups