Hello community,

here is the log from the commit of package mdadm for openSUSE:Factory checked 
in at 2016-07-24 19:42:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mdadm (Old)
 and      /work/SRC/openSUSE:Factory/.mdadm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mdadm"

Changes:
--------
--- /work/SRC/openSUSE:Factory/mdadm/mdadm.changes      2016-05-25 
21:21:54.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.mdadm.new/mdadm.changes 2016-07-24 
19:42:40.000000000 +0200
@@ -1,0 +2,7 @@
+Sun May 22 15:01:13 UTC 2016 - b...@merriam.net
+
+- Added 0002-The-mdcheck-script-now-adds-messages-to-the-system.patch
+  The mdcheck bash script now writes messages to the syslog about 
+  progress with check.
+
+-------------------------------------------------------------------

New:
----
  0002-The-mdcheck-script-now-adds-messages-to-the-system.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mdadm.spec ++++++
--- /var/tmp/diff_new_pack.rxpEWY/_old  2016-07-24 19:42:41.000000000 +0200
+++ /var/tmp/diff_new_pack.rxpEWY/_new  2016-07-24 19:42:41.000000000 +0200
@@ -40,6 +40,7 @@
 Source3:        cron.d.mdadm
 Source7:        mdadm.cron
 Patch1:         0001-super1-Clear-memory-allocated-for-superblock-bitmap-.patch
+Patch2:                        
0002-The-mdcheck-script-now-adds-messages-to-the-system.patch
 
 %define _udevdir %(pkg-config --variable=udevdir udev)
 %define _systemdshutdowndir %{_unitdir}/../system-shutdown
@@ -52,6 +53,7 @@
 %prep
 %setup -q -a1
 %patch1 -p1
+%patch2 -p1
 
 %build
 make %{?_smp_mflags} CC="%__cc" CXFLAGS="$RPM_OPT_FLAGS -Wno-error" SUSE=yes

++++++ 0002-The-mdcheck-script-now-adds-messages-to-the-system.patch ++++++
>From 03bec5cfdd87f25b1669a4b62d19cf872403d37a Mon Sep 17 00:00:00 2001
From: Bill Merriam <b...@merriam.net>
Date: Tue, 17 May 2016 10:16:13 -0400
Subject: [PATCH] The mdcheck script now adds messages to the system log to
 report on progress of the array check.  These are issued when mdcheck starts
 or continues a check and when it suspends a check at the expiration of
 duration.  The messages either report the check has completed or the block
 number of the current and last block in the array and the percentage of
 completion.

Signed-off-by: Bill Merriam <b...@merriam.net>
---
 misc/mdcheck | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/misc/mdcheck b/misc/mdcheck
index 2c8f54d..c33e3f6 100644
--- a/misc/mdcheck
+++ b/misc/mdcheck
@@ -100,6 +100,8 @@ do
                continue
        else
                start=`cat "$fl"`
+               size=$(expr $(cat $sys/md/component_size) \* 2)
+               logger $(echo $dev $start $size | awk '{printf "MDCHECK 
Continuing check on %s at block %i of %i, %6.2f%% complete\n", $1, $2, $3,  
$2/$3*100 }')
        fi
 
        cnt=$[cnt+1]
@@ -129,6 +131,7 @@ do
                then
                        eval MD_${i}_fl=
                        rm -f $fl
+                       logger "MDCHECK check completed on ${sys##*/}, removing 
$fl"
                        continue;
                fi
                read a rest < $sys/md/sync_completed
@@ -156,4 +159,8 @@ do
        fi
        echo idle > $sys/md/sync_action
        cat $sys/md/sync_min > $fl
+       dev=${sys##*/}
+       start=$(cat $fl)
+       size=$(expr $(cat $sys/md/component_size) \* 2)
+       logger $(echo $dev $start $size | awk '{printf "MDCHECK Suspending 
check on %s at block %i of %i, %6.2f%% complete\n", $1, $2, $3,  $2/$3*100 }')
 done
-- 
2.6.6


Reply via email to