summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-02-06 17:06:28 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-02-24 21:57:53 -0800
commit5d59402af8397da1a8eb5f822e1e650ce3285833 (patch)
tree76dcf4f8b6e8e8bb80e74e05d4c9abb84f41502c /libglusterfs
parent729428aae82e8b878227bb71e65b629783e17ffb (diff)
features/index: Add option to track specific xattrs for xattrop64
This enables trusted.ec.dirty to be tracked in index Change-Id: Ief1619110859f6f9ccee3da229f0688b73e2124b BUG: 1177601 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/9602 Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/dict.c6
-rw-r--r--libglusterfs/src/dict.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c
index 3d8b5d8fef1..31867588def 100644
--- a/libglusterfs/src/dict.c
+++ b/libglusterfs/src/dict.c
@@ -1122,8 +1122,8 @@ dict_remove_foreach_fn (dict_t *d, char *k,
return 0;
}
-static inline gf_boolean_t
-match_everything (dict_t *d, char *k, data_t *v, void *data)
+gf_boolean_t
+dict_match_everything (dict_t *d, char *k, data_t *v, void *data)
{
return _gf_true;
}
@@ -1138,7 +1138,7 @@ dict_foreach (dict_t *dict,
{
int ret = 0;
- ret = dict_foreach_match (dict, match_everything, NULL, fn, data);
+ ret = dict_foreach_match (dict, dict_match_everything, NULL, fn, data);
if (ret > 0)
ret = 0;
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h
index 66a900131d1..a4c1815d06a 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -95,6 +95,8 @@ struct _dict {
gf_boolean_t free_pair_in_use;
};
+typedef gf_boolean_t (*dict_match_t) (dict_t *d, char *k, data_t *v,
+ void *data);
int32_t is_data_equal (data_t *one, data_t *two);
void data_destroy (data_t *data);
@@ -255,4 +257,6 @@ dict_dump_to_log (dict_t *dict);
int
dict_dump_to_str (dict_t *dict, char *dump, int dumpsize, char *format);
+gf_boolean_t
+dict_match_everything (dict_t *d, char *k, data_t *v, void *data);
#endif