From e2303e774e1e37cd9becb672a67278502724b369 Mon Sep 17 00:00:00 2001 From: Mohammed Junaid Date: Tue, 24 Jan 2012 17:12:59 +0530 Subject: features/quota: Check for error in statfs fop call back. Change-Id: Ia73d2b77dcb0507a7b8362c336c71301526aaf82 BUG: 783927 Signed-off-by: Mohammed Junaid Reviewed-on: http://review.gluster.com/2685 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quota.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/features/quota') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 79172999a..a02ec2a79 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -2732,6 +2732,11 @@ quota_statfs_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int64_t avail = -1; root_inode = cookie; + + /* This fop will fail mostly in case of client disconnect's, + * which is already logged. Hence, not logging here */ + if (op_ret == -1) + goto unwind; /* * We should never get here unless quota_statfs (below) sent us a * cookie, and it would only do so if the value was non-NULL. This -- cgit