From 4bb82b2c779bb984a980e371c3119254cf1cb0f8 Mon Sep 17 00:00:00 2001 From: Mohammed Junaid Date: Mon, 9 Apr 2012 12:14:59 +0530 Subject: storage/posix: Avoid excessive logging in posix. When quota or gsyncd is enabled, the marker translator performs setxattr on files/directories. If the file/directory is deleted before setxattr, posix gets an error when it does setxattr and logs it. But its not an error for marker and it handles the case gracefully. Hence, avoid logging for these keys. Change-Id: Ic614777399497be92ed1c2b4718d46adfb639d96 BUG: 765498 Signed-off-by: Mohammed Junaid Reviewed-on: http://review.gluster.com/3105 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 2452ddc4d88..0987075e1f5 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -60,6 +60,7 @@ #include "glusterfs3-xdr.h" #include "hashfn.h" +extern char *marker_xattrs[]; #undef HAVE_SET_FSID #ifdef HAVE_SET_FSID @@ -3101,7 +3102,9 @@ do_xattrop (call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd, this->name,GF_LOG_WARNING, "Extended attributes not " "supported by filesystem"); - } else { + } else if (op_errno != ENOENT || + !posix_special_xattr (marker_xattrs, + trav->key)) { if (loc) gf_log (this->name, GF_LOG_ERROR, "getxattr failed on %s while doing " -- cgit