diff options
Diffstat (limited to 'xlators')
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 32 | 
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 "  | 
