From 889359f8456d8d1799ec66bf0e5506732c7907b9 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 30 Apr 2014 03:05:48 +0530 Subject: [PATCH] storage/posix: Remove dead code in xattrop Change-Id: I48ba81ad342e3c8fe1d81f8e57e61676dd356fb0 BUG: 1092749 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7318 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix.c | 32 ------------------------------- 1 file changed, 32 deletions(-) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 411f027f7..72c52339e 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4194,30 +4194,10 @@ __add_array (int32_t *dest, int32_t *src, int count) int32_t destval = 0; for (i = 0; i < count; i++) { destval = ntoh32 (dest[i]); - if (destval == 0xffffffff) - continue; dest[i] = hton32 (destval + ntoh32 (src[i])); } } -static void -__or_array (int32_t *dest, int32_t *src, int count) -{ - int i = 0; - for (i = 0; i < count; i++) { - dest[i] = hton32 (ntoh32 (dest[i]) | ntoh32 (src[i])); - } -} - -static void -__and_array (int32_t *dest, int32_t *src, int count) -{ - int i = 0; - for (i = 0; i < count; i++) { - dest[i] = hton32 (ntoh32 (dest[i]) & ntoh32 (src[i])); - } -} - static void __add_long_array (int64_t *dest, int64_t *src, int count) { @@ -4310,18 +4290,6 @@ _posix_handle_xattr_keyvalue_pair (dict_t *d, char *k, data_t *v, v->len / 8); break; - case GF_XATTROP_OR_ARRAY: - __or_array ((int32_t *) array, - (int32_t *) v->data, - v->len / 4); - break; - - case GF_XATTROP_AND_ARRAY: - __and_array ((int32_t *) array, - (int32_t *) v->data, - v->len / 4); - break; - default: gf_log (this->name, GF_LOG_ERROR, "Unknown xattrop type (%d) on %s. Please send "