Reduce logging caused by non-existing extended attributes
This changes the following log messages from INFO (default value) to DEBUG. We do not really care if someone tries to read extended attributes that do not exist. [2013-12-09 12:19:05.924497] E [posix.c:3539:posix_fgetxattr] 0-dis-rep-posix: fgetxattr failed on key system.posix_acl_access (No data available) [2013-12-09 12:19:05.924545] I [server-rpc-fops.c:863:server_fgetxattr_cbk] 0-dis-rep-server: 13074: FGETXATTR 1 (b8381953-ffa5-40fa-90dd-ae122335cc4b) (system.posix_acl_access) ==> (No data available) Change-Id: Idbbeb026f81e67025a2b36d7bfeb125ad2a1f61b BUG: 1027174 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/7171 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-by: Anand Avati <avati@redhat.com>
This commit is contained in:
parent
ee150bd45e
commit
7b3399cd46
@ -810,7 +810,9 @@ server_fgetxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
|
||||
|
||||
if (op_ret == -1) {
|
||||
state = CALL_STATE (frame);
|
||||
gf_log (this->name, ((op_errno == ENOTSUP) ?
|
||||
gf_log (this->name, (((op_errno == ENOTSUP) ||
|
||||
(op_errno == ENODATA) ||
|
||||
(op_errno == ENOENT)) ?
|
||||
GF_LOG_DEBUG : GF_LOG_INFO),
|
||||
"%"PRId64": FGETXATTR %"PRId64" (%s) (%s) ==> (%s)",
|
||||
frame->root->unique, state->resolve.fd_no,
|
||||
|
@ -3733,8 +3733,10 @@ posix_fgetxattr (call_frame_t *frame, xlator_t *this,
|
||||
size = sys_fgetxattr (_fd, key, NULL, 0);
|
||||
if (size <= 0) {
|
||||
op_errno = errno;
|
||||
gf_log (this->name, GF_LOG_ERROR, "fgetxattr failed on "
|
||||
"key %s (%s)", key, strerror (op_errno));
|
||||
gf_log (this->name, ((errno == ENODATA) ?
|
||||
GF_LOG_DEBUG : GF_LOG_ERROR),
|
||||
"fgetxattr failed on key %s (%s)", key,
|
||||
strerror (op_errno));
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user