cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andrew Price <anprice@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/2] fsck.gfs2: Really be quiet in quiet mode
Date: Fri, 11 Sep 2015 12:35:03 +0100	[thread overview]
Message-ID: <1441971304-31556-1-git-send-email-anprice@redhat.com> (raw)

Using the -q option leaves some informational messages still printed as
they're using log_warn. Switch them to log_notice so that they're not
printed when -q is used.

Signed-off-by: Andrew Price <anprice@redhat.com>
---
 gfs2/fsck/initialize.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gfs2/fsck/initialize.c b/gfs2/fsck/initialize.c
index bb9755c..4a31927 100644
--- a/gfs2/fsck/initialize.c
+++ b/gfs2/fsck/initialize.c
@@ -629,15 +629,15 @@ static int fetch_rgrps(struct gfs2_sbd *sdp)
 	/*******************************************************************
 	 ********  Validate and read in resource group information  ********
 	 *******************************************************************/
-	log_warn( _("Validating Resource Group index.\n"));
+	log_notice(_("Validating resource group index.\n"));
 	for (trust_lvl = blind_faith; trust_lvl <= indignation; trust_lvl++) {
 		int ret = 0;
 
-		log_warn( _("Level %d rgrp check: %s.\n"), trust_lvl + 1,
+		log_notice(_("Level %d resource group check: %s.\n"), trust_lvl + 1,
 			  level_desc[trust_lvl]);
 		if ((rg_repair(sdp, trust_lvl, &rgcount, &sane) == 0) &&
 		    ((ret = ri_update(sdp, 0, &rgcount, &sane)) == 0)) {
-			log_warn( _("(level %d passed)\n"), trust_lvl + 1);
+			log_notice(_("(level %d passed)\n"), trust_lvl + 1);
 			break;
 		} else {
 			if (ret < 0)
@@ -654,7 +654,7 @@ static int fetch_rgrps(struct gfs2_sbd *sdp)
 			break;
 	}
 	if (trust_lvl > indignation) {
-		log_err( _("Resource Group recovery impossible; I can't fix "
+		log_err( _("Resource group recovery impossible; I can't fix "
 			   "this file system.\n"));
 		return -1;
 	}
-- 
2.4.3



             reply	other threads:[~2015-09-11 11:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 11:35 Andrew Price [this message]
2015-09-11 11:35 ` [Cluster-devel] [PATCH 2/2] fsck.gfs2: Improve read ahead in pass1_process_bitmap Andrew Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441971304-31556-1-git-send-email-anprice@redhat.com \
    --to=anprice@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).