0a100e5103
- Update to latest mdadm which is requested by jsc#SLE-13700 from partners. Mostly the purpose is for latest Intel IMSM raid support, while some other fixes are important too. - imsm: Correct minimal device size (jsc#SLE-13700) 0073-imsm-Correct-minimal-device-size.patch - Detail: show correct bitmap info for cluster raid device (jsc#SLE-13700) 0074-Detail-show-correct-bitmap-info-for-cluster-raid-dev.patch - imsm: support the Array Creation Time field in metadata (jsc#SLE-13700) 0075-imsm-support-the-Array-Creation-Time-field-in-metada.patch - imsm: show Subarray and Volume ID in --examine output (jsc#SLE-13700) 0076-imsm-show-Subarray-and-Volume-ID-in-examine-output.patch - udev: Ignore change event for imsm (jsc#SLE-13700) 0077-udev-Ignore-change-event-for-imsm.patch - Manage, imsm: Write metadata before add (jsc#SLE-13700) 0078-Manage-imsm-Write-metadata-before-add.patch - Assemble: print error message if mdadm fails assembling with --uuid option (jsc#SLE-13700) 0079-Assemble-print-error-message-if-mdadm-fails-assembli.patch - clean up meaning of small typo (jsc#SLE-13700) 0080-clean-up-meaning-of-small-typo.patch - Assemble.c: respect force flag (jsc#SLE-13700) 0081-Assemble.c-respect-force-flag.patch - mdcheck: Log when done (jsc#SLE-13700) 0082-mdcheck-Log-when-done.patch - Makefile: add EXTRAVERSION support (jsc#SLE-13700) 0083-Makefile-add-EXTRAVERSION-support.patch - uuid.c: split uuid stuffs from util.c (jsc#SLE-13700) OBS-URL: https://build.opensuse.org/request/show/841255 OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=189
50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
From 3b7aae927bdb6e150d1aaf3aaf0d183a06abda0b Mon Sep 17 00:00:00 2001
|
|
From: Donald Buczek <buczek@molgen.mpg.de>
|
|
Date: Wed, 13 May 2020 15:16:46 +0200
|
|
Subject: [PATCH 77/89] mdcheck: Log when done
|
|
Git-commit: 3b7aae927bdb6e150d1aaf3aaf0d183a06abda0b
|
|
Patch-mainline: mdadm-4.1+
|
|
References: jsc#SLE-13700
|
|
|
|
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>
|
|
Signed-off-by: Coly Li <colyli@suse.de>
|
|
---
|
|
misc/mdcheck | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
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;
|
|
--
|
|
2.26.2
|
|
|