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>
This commit is contained in:
parent
15ea78fffd
commit
889359f845
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user