summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/dict.h
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-11-06 10:37:06 +0530
committerNiels de Vos <ndevos@redhat.com>2015-02-12 04:08:12 -0800
commit6e4e21c689c2e4b96a564afb2f0a3972e7829a53 (patch)
treec772b97fcbd68fbc48c97a1f8e119ecdb3109ec1 /libglusterfs/src/dict.h
parentbb8845d3bd94f94a1302bb50811be209a7253dcb (diff)
features/marker: Filter internal xattrs in lookup
Backport of http://review.gluster.com/9061 Afr should ignore quota-size-key as part of self-heal but should heal quota-limit key. BUG: 1162230 Change-Id: I639cfabbc44468da29914096afc7e2eca1ff1292 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/9091 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'libglusterfs/src/dict.h')
-rw-r--r--libglusterfs/src/dict.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h
index a92fd2cb61a..5f9e66e51f7 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -177,6 +177,19 @@ int dict_foreach_fnmatch (dict_t *dict, char *pattern,
void *data),
void *data);
+int
+dict_foreach_match (dict_t *dict,
+ gf_boolean_t (*match)(dict_t *this,
+ char *key,
+ data_t *value,
+ void *mdata),
+ void *match_data,
+ int (*action)(dict_t *this,
+ char *key,
+ data_t *value,
+ void *adata),
+ void *action_data);
+
int dict_null_foreach_fn (dict_t *d, char *k,
data_t *v, void *tmp);
int dict_remove_foreach_fn (dict_t *d, char *k,