summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDonald Buczek <buczek@molgen.mpg.de>2020-05-13 15:16:46 +0200
committerJes Sorensen <jsorensen@fb.com>2020-05-14 11:08:59 -0400
commit3b7aae927bdb6e150d1aaf3aaf0d183a06abda0b (patch)
treee960db0014482b3d5e026d44b05613b0ebbf7dbc /misc
parent7b99edab2834d5d08ef774b4cff784caaa1a186f (diff)
downloadmdadm-3b7aae927bdb6e150d1aaf3aaf0d183a06abda0b.tar.gz
mdcheck: Log when done
Currently mdcheck (when called with `--duration`) logs only the beginning of the check, the pausing and the continuation but not the completion. So, log the completion, too, so that it can be determined how long the raid check took. 2020-05-08T18:00:02+02:00 deadpool root: mdcheck start checking /dev/md0 2020-05-08T18:00:02+02:00 deadpool root: mdcheck start checking /dev/md1 2020-05-09T15:32:04+02:00 deadpool root: mdcheck finished checking /dev/md1 2020-05-09T17:38:04+02:00 deadpool root: mdcheck finished checking /dev/md0 Cc: linux-raid@vger.kernel.org Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/mdcheck2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/mdcheck b/misc/mdcheck
index 42d4094..700c3e2 100644
--- a/misc/mdcheck
+++ b/misc/mdcheck
@@ -125,11 +125,13 @@ do
do
eval fl=\$MD_${i}_fl
eval sys=\$MD_${i}_sys
+ eval dev=\$MD_${i}_dev
if [ -z "$fl" ]; then continue; fi
if [ "`cat $sys/md/sync_action`" != 'check' ]
then
+ logger -p daemon.info mdcheck finished checking $dev
eval MD_${i}_fl=
rm -f $fl
continue;