diff options
author | Raghavendra <raghavendra@gluster.com> | 2012-10-23 13:16:42 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-11-27 22:44:40 -0800 |
commit | 228f0ea02b259b2a80edc9f92c2508635085f871 (patch) | |
tree | 5e773865497a648dba9c2f869e842eaee899adad /xlators/cluster/stripe/src/stripe.h | |
parent | 6c3eebad5c52fde2c198232066b270a5f3996910 (diff) |
cluster/stripe: handle GF_XATTR_LOCKINFO_KEY in f(get)(set)xattr
Change-Id: I4463006a7f54c05e757d877c56e1330fd91aec45
BUG: 808400
Signed-off-by: Raghavendra <raghavendra@gluster.com>
Reviewed-on: http://review.gluster.org/4125
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/stripe/src/stripe.h')
-rw-r--r-- | xlators/cluster/stripe/src/stripe.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xlators/cluster/stripe/src/stripe.h b/xlators/cluster/stripe/src/stripe.h index a440f87ba1f..53b683c735c 100644 --- a/xlators/cluster/stripe/src/stripe.h +++ b/xlators/cluster/stripe/src/stripe.h @@ -73,9 +73,9 @@ } while (0) typedef struct stripe_xattr_sort { - int32_t pos; - int32_t xattr_len; - char *xattr_value; + int pos; + int xattr_len; + char *xattr_value; } stripe_xattr_sort_t; /** @@ -262,6 +262,9 @@ int32_t stripe_xattr_aggregate (char *buffer, stripe_local_t *local, off_t coalesced_offset(off_t offset, uint64_t stripe_size, int stripe_count); off_t uncoalesced_size(off_t size, uint64_t stripe_size, int stripe_count, int stripe_index); +int32_t +stripe_fill_lockinfo_xattr (xlator_t *this, stripe_local_t *local, + void **xattr_serz); /* * Adjust the size attribute for files if coalesce is enabled. |