diff options
| -rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 4 | ||||
| -rw-r--r-- | xlators/storage/posix/src/posix-inode-fd-ops.c | 31 | 
2 files changed, 4 insertions, 31 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 47521d160ee..5a5ddacd7f6 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4395,6 +4395,10 @@ dht_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,                          dict_del (xattr, conf->xattr_name);                  } +                if (dict_get (xattr,  conf->mds_xattr_key)) { +                        dict_del (xattr, conf->mds_xattr_key); +                } +                  if (frame->root->pid >= 0) {                          GF_REMOVE_INTERNAL_XATTR                                  ("trusted.glusterfs.quota*", xattr); diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c index 12bd41b3d04..e0d8f258fce 100644 --- a/xlators/storage/posix/src/posix-inode-fd-ops.c +++ b/xlators/storage/posix/src/posix-inode-fd-ops.c @@ -2863,26 +2863,6 @@ out:          return ret;  } -gf_boolean_t -posix_is_mds_xattr (const char *name) -{ -        regex_t regcmpl; -        char *key = {"trusted.glusterfs.*.mds$"}; -        regmatch_t result[1] = {{0} }; -        gf_boolean_t status = _gf_false; - -        if (regcomp (®cmpl, key, REG_EXTENDED)) { -                goto out; -        } -        if (!regexec (®cmpl, name, 1, result, 0)) { -                status = _gf_true; -                goto out; -        } -out: -        regfree(®cmpl); -        return status; -} -  /**   * posix_getxattr - this function returns a dictionary with all the @@ -2944,13 +2924,6 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,                  goto out;          } -        if (name && posix_is_mds_xattr (name)) { -                op_ret = -1; -                op_errno = ENOATTR; -                goto out; -        } - -          if (loc->inode && IA_ISDIR(loc->inode->ia_type) && name &&              ZR_FILE_CONTENT_REQUEST(name)) {                  ret = posix_get_file_contents (this, loc->gfid, &name[15], @@ -3333,10 +3306,6 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,                          goto ignore;                  } -                if (posix_is_mds_xattr (keybuffer)) { -                        goto ignore; -                } -                  memset (value_buf, '\0', XATTR_VAL_BUF_SIZE);                  have_val = _gf_false;                  size = sys_lgetxattr (real_path, keybuffer, value_buf,  | 
