diff options
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/md-cache/src/md-cache.c | 2 | ||||
-rw-r--r-- | xlators/performance/nl-cache/src/nl-cache.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index a1280d6a2cc..7da877f87e2 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -3236,7 +3236,7 @@ mdc_xattr_list_populate (struct mdc_conf *conf, char *tmp_str) size_t max_size = 0; int ret = 0; - max_size = strlen ("security.capability,security.selinux,security.ima," + max_size = SLEN ("security.capability,security.selinux,security.ima," POSIX_ACL_ACCESS_XATTR","POSIX_ACL_DEFAULT_XATTR"," GF_POSIX_ACL_ACCESS","GF_POSIX_ACL_DEFAULT"," "user.swift.metadata,user.DOSATTRIB,user.DosStream.*" diff --git a/xlators/performance/nl-cache/src/nl-cache.c b/xlators/performance/nl-cache/src/nl-cache.c index 0f0e53bac2b..effe91e9798 100644 --- a/xlators/performance/nl-cache/src/nl-cache.c +++ b/xlators/performance/nl-cache/src/nl-cache.c @@ -319,7 +319,7 @@ nlc_getxattr (call_frame_t *frame, xlator_t *this, loc_t *loc, const char *key, goto wind; if (!key || (strncmp (key, GF_XATTR_GET_REAL_FILENAME_KEY, - strlen (GF_XATTR_GET_REAL_FILENAME_KEY)) != 0)) + SLEN (GF_XATTR_GET_REAL_FILENAME_KEY)) != 0)) goto wind; local = nlc_local_init (frame, this, GF_FOP_GETXATTR, loc, NULL); @@ -331,7 +331,7 @@ nlc_getxattr (call_frame_t *frame, xlator_t *this, loc_t *loc, const char *key, if (!dict) goto err; - fname = key + strlen (GF_XATTR_GET_REAL_FILENAME_KEY); + fname = key + SLEN (GF_XATTR_GET_REAL_FILENAME_KEY); hit = nlc_get_real_file_name (this, loc, fname, &op_ret, &op_errno, dict); if (hit) |