From 232adb88512274863c9f5ad51569695af80bd6c0 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 17 Oct 2012 16:45:45 +0530 Subject: protocols: Suppress getxattr log when errno is ENOENT Change-Id: I3f4fe3f382aec5fd142cc409b80bd73aebd8b39b BUG: 861015 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/4097 Reviewed-by: Jeff Darcy Tested-by: Gluster Build System --- xlators/protocol/client/src/client-rpc-fops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/client') diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index d5114e0734e..9c7375ea8de 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -1093,7 +1093,9 @@ client3_3_getxattr_cbk (struct rpc_req *req, struct iovec *iov, int count, out: if (rsp.op_ret == -1) { - gf_log (this->name, (((op_errno == ENOTSUP) || (op_errno == ENODATA)) ? + gf_log (this->name, (((op_errno == ENOTSUP) || + (op_errno == ENODATA) || + (op_errno == ENOENT)) ? GF_LOG_DEBUG : GF_LOG_WARNING), "remote operation failed: %s. Path: %s (%s). Key: %s", strerror (op_errno), -- cgit