|
|
a3470f |
From 6699edde4b8d82346dc06a2468434aa99ee53b53 Mon Sep 17 00:00:00 2001
|
|
|
a3470f |
From: Amar Tumballi <amarts@redhat.com>
|
|
|
a3470f |
Date: Wed, 9 May 2018 00:56:11 +0530
|
|
|
a3470f |
Subject: [PATCH 274/274] client/protocol: fix the log level for
|
|
|
a3470f |
removexattr_cbk
|
|
|
a3470f |
|
|
|
a3470f |
noticed that server protocol actually logs all the errors for
|
|
|
a3470f |
removexattr as INFO, instead of WARNING like client, and hence,
|
|
|
a3470f |
doesn't create a confusion in user.
|
|
|
a3470f |
|
|
|
a3470f |
Upstream:
|
|
|
a3470f |
> Patch URL: https://review.gluster.org/19990/
|
|
|
a3470f |
> Change-Id: Ia6681e9ee433fda3c77a4509906c78333396e339
|
|
|
a3470f |
> Signed-off-by: Amar Tumballi <amarts@redhat.com>
|
|
|
a3470f |
|
|
|
a3470f |
BUG: 1575555
|
|
|
a3470f |
Change-Id: I1540a6b77abc48eebf06072d781afadf371e982d
|
|
|
a3470f |
Signed-off-by: Amar Tumballi <amarts@redhat.com>
|
|
|
a3470f |
Reviewed-on: https://code.engineering.redhat.com/gerrit/139053
|
|
|
a3470f |
Tested-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
a3470f |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
a3470f |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
a3470f |
---
|
|
|
a3470f |
xlators/protocol/client/src/client-rpc-fops.c | 7 ++++++-
|
|
|
a3470f |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
a3470f |
|
|
|
a3470f |
diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c
|
|
|
a3470f |
index 973a795..e6a9b90 100644
|
|
|
a3470f |
--- a/xlators/protocol/client/src/client-rpc-fops.c
|
|
|
a3470f |
+++ b/xlators/protocol/client/src/client-rpc-fops.c
|
|
|
a3470f |
@@ -1196,7 +1196,12 @@ client3_3_removexattr_cbk (struct rpc_req *req, struct iovec *iov, int count,
|
|
|
a3470f |
ret = client_post_removexattr (this, &rsp, &xdata);
|
|
|
a3470f |
out:
|
|
|
a3470f |
if (rsp.op_ret == -1) {
|
|
|
a3470f |
- if ((ENODATA == rsp.op_errno) || (ENOATTR == rsp.op_errno))
|
|
|
a3470f |
+ /* EPERM/EACCESS is returned some times in case of selinux
|
|
|
a3470f |
+ attributes, or other system attributes which may not be
|
|
|
a3470f |
+ possible to remove from an user process is encountered.
|
|
|
a3470f |
+ we can't treat it as an error */
|
|
|
a3470f |
+ if ((ENODATA == rsp.op_errno) || (ENOATTR == rsp.op_errno) ||
|
|
|
a3470f |
+ (EPERM == rsp.op_errno) || (EACCES == rsp.op_errno))
|
|
|
a3470f |
loglevel = GF_LOG_DEBUG;
|
|
|
a3470f |
else
|
|
|
a3470f |
loglevel = GF_LOG_WARNING;
|
|
|
a3470f |
--
|
|
|
a3470f |
1.8.3.1
|
|
|
a3470f |
|