Linux-Raid Archives on lore.kernel.org
 help / color / Atom feed
* [PATCH 1/2] mdcheck: Prefix pause message with mdcheck
@ 2020-09-24 22:36 rlaager
  2020-09-24 22:36 ` [PATCH 2/2] mdcheck: Set a tag of mdcheck rlaager
  0 siblings, 1 reply; 2+ messages in thread
From: rlaager @ 2020-09-24 22:36 UTC (permalink / raw)
  To: linux-raid; +Cc: rlaager

From: Richard Laager <rlaager@wiktel.com>

This makes it consistent with the other messages.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
---
 misc/mdcheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/mdcheck b/misc/mdcheck
index 700c3e2..299cf10 100644
--- a/misc/mdcheck
+++ b/misc/mdcheck
@@ -162,5 +162,5 @@ do
 	fi
 	echo idle > $sys/md/sync_action
 	cat $sys/md/sync_min > $fl
-	logger -p daemon.info pause checking $dev at `cat $fl`
+	logger -p daemon.info mdcheck pause checking $dev at `cat $fl`
 done
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2/2] mdcheck: Set a tag of mdcheck
  2020-09-24 22:36 [PATCH 1/2] mdcheck: Prefix pause message with mdcheck rlaager
@ 2020-09-24 22:36 ` rlaager
  0 siblings, 0 replies; 2+ messages in thread
From: rlaager @ 2020-09-24 22:36 UTC (permalink / raw)
  To: linux-raid; +Cc: rlaager

From: Richard Laager <rlaager@wiktel.com>

For syslog messages, the tag is normally the daemon/script name.  This
changes the log messages from using "root: mdcheck ..." to
"mdcheck: ...".

Signed-off-by: Richard Laager <rlaager@wiktel.com>
---
 misc/mdcheck | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/misc/mdcheck b/misc/mdcheck
index 299cf10..acfda10 100644
--- a/misc/mdcheck
+++ b/misc/mdcheck
@@ -94,14 +94,14 @@ do
 	if [ -z "$cont" ]
 	then
 		start=0
-		logger -p daemon.info mdcheck start checking $dev
+		logger -p daemon.info -t mdcheck start checking $dev
 	elif [ -z "$MD_UUID" -o ! -f "$fl" ]
 	then
 		# Nothing to continue here
 		continue
 	else
 		start=`cat "$fl"`
-		logger -p daemon.info mdcheck continue checking $dev from $start
+		logger -p daemon.info -t mdcheck continue checking $dev from $start
 	fi
 
 	cnt=$[cnt+1]
@@ -131,7 +131,7 @@ do
 
 		if [ "`cat $sys/md/sync_action`" != 'check' ]
 		then
-			logger -p daemon.info mdcheck finished checking $dev
+			logger -p daemon.info -t mdcheck finished checking $dev
 			eval MD_${i}_fl=
 			rm -f $fl
 			continue;
@@ -162,5 +162,5 @@ do
 	fi
 	echo idle > $sys/md/sync_action
 	cat $sys/md/sync_min > $fl
-	logger -p daemon.info mdcheck pause checking $dev at `cat $fl`
+	logger -p daemon.info -t mdcheck pause checking $dev at `cat $fl`
 done
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 22:36 [PATCH 1/2] mdcheck: Prefix pause message with mdcheck rlaager
2020-09-24 22:36 ` [PATCH 2/2] mdcheck: Set a tag of mdcheck rlaager

Linux-Raid Archives on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-raid/0 linux-raid/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-raid linux-raid/ https://lore.kernel.org/linux-raid \
		linux-raid@vger.kernel.org
	public-inbox-index linux-raid

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-raid


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git