From 516b21c238394bd55b6ac770abec53cc5a1c9c4f Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 11 Aug 2009 01:42:14 +0000 Subject: features/locks: Set the right log level in a few places. Signed-off-by: Anand V. Avati --- xlators/features/locks/src/internal.c | 18 +++++++++--------- xlators/features/locks/src/posix.c | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'xlators/features/locks') diff --git a/xlators/features/locks/src/internal.c b/xlators/features/locks/src/internal.c index 817dab4a1..6524721b4 100644 --- a/xlators/features/locks/src/internal.c +++ b/xlators/features/locks/src/internal.c @@ -181,9 +181,9 @@ pl_inodelk (call_frame_t *frame, xlator_t *this, default: op_errno = ENOTSUP; - gf_log (this->name, GF_LOG_DEBUG, - "Lock command F_GETLK not supported for [f]inodelk " - "(cmd=%d)", + gf_log (this->name, GF_LOG_ERROR, + "Unexpected case in inodelk (cmd=%d). " + "Please file a bug report at http://bugs.gluster.com", cmd); goto unwind; } @@ -284,8 +284,8 @@ pl_finodelk (call_frame_t *frame, xlator_t *this, default: op_errno = ENOTSUP; gf_log (this->name, GF_LOG_ERROR, - "Lock command F_GETLK not supported for [f]inodelk " - "(cmd=%d)", + "Unexpected case in finodelk (cmd=%d). " + "Please file a bug report at http://bugs.gluster.com", cmd); goto unwind; } @@ -775,8 +775,8 @@ pl_entrylk (call_frame_t *frame, xlator_t *this, default: gf_log (this->name, GF_LOG_ERROR, - "Unexpected case in entrylk (cmd=%d). Please send" - "a bug report to gluster-devel@nongnu.org", cmd); + "Unexpected case in entrylk (cmd=%d). Please file" + "a bug report at http://bugs.gluster.com", cmd); goto out; } @@ -879,9 +879,9 @@ pl_fentrylk (call_frame_t *frame, xlator_t *this, break; default: - gf_log (this->name, GF_LOG_DEBUG, + gf_log (this->name, GF_LOG_ERROR, "Unexpected case in fentrylk (cmd=%d). " - "Please send a bug report to gluster-devel@nongnu.org", + "Please file a bug report at http://bugs.gluster.com", cmd); goto out; } diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 144c8fedf..d672beaeb 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -715,7 +715,7 @@ pl_forget (xlator_t *this, pl_inode = pl_inode_get (this, inode); if (!list_empty (&pl_inode->rw_list)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "Pending R/W requests found, releasing."); list_for_each_entry_safe (rw_req, rw_tmp, &pl_inode->rw_list, @@ -727,7 +727,7 @@ pl_forget (xlator_t *this, } if (!list_empty (&pl_inode->ext_list)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "Pending fcntl locks found, releasing."); list_for_each_entry_safe (ext_l, ext_tmp, &pl_inode->ext_list, @@ -739,7 +739,7 @@ pl_forget (xlator_t *this, } if (!list_empty (&pl_inode->int_list)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "Pending inode locks found, releasing."); list_for_each_entry_safe (int_l, int_tmp, &pl_inode->int_list, @@ -751,7 +751,7 @@ pl_forget (xlator_t *this, } if (!list_empty (&pl_inode->dir_list)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "Pending entry locks found, releasing."); list_for_each_entry_safe (entry_l, entry_tmp, -- cgit