summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-04-30 03:05:48 +0530
committerVijay Bellur <vbellur@redhat.com>2014-05-01 02:23:03 -0700
commit889359f8456d8d1799ec66bf0e5506732c7907b9 (patch)
tree023132c832cfff02d68a19344349291d61fa29c4
parent15ea78fffd63756fecf2f15887d3cad6a13d2a34 (diff)
storage/posix: Remove dead code in xattrop
Change-Id: I48ba81ad342e3c8fe1d81f8e57e61676dd356fb0 BUG: 1092749 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/7318 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--xlators/storage/posix/src/posix.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 411f027f7e1..72c52339e5e 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -4194,31 +4194,11 @@ __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)
{
int i = 0;
@@ -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 "