martin f. krafft: Make checkarray skip over arrays still marked auto-read-only

Martin F. Krafft madduck at alioth.debian.org
Sat Apr 25 17:45:09 UTC 2009


Module: mdadm
Branch: build
Commit: 6d70cef7bba3361250e6776e69fe87ca6dcd146b
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=6d70cef7bba3361250e6776e69fe87ca6dcd146b

Author: martin f. krafft <madduck at debian.org>
Date:   Sat Apr 25 17:45:52 2009 +0200

Make checkarray skip over arrays still marked auto-read-only

Generally, we don't want to check those arrays, and marking the active would
defeat the point of auto-read-only. See the Debian bug log.

Debian bug: 510641

Signed-off-by: martin f. krafft <madduck at debian.org>

---

 debian/changelog  |    2 ++
 debian/checkarray |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cbabd82..eb497b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ mdadm (2.6.9-1) unstable; urgency=low
   * Incorporate patch from Adrian Bridgett: the initramfs hook now checks to
     see if all known arrays are listed in mdadm.conf and issues a warning if
     this is not the case (closes: #519328).
+  * Make checkarray skip over arrays still marked auto-read-only
+    (closes: #510641).
 
  -- martin f. krafft <madduck at debian.org>  Thu, 12 Mar 2009 13:08:43 +0100
 
diff --git a/debian/checkarray b/debian/checkarray
index cd17a07..2194a54 100644
--- a/debian/checkarray
+++ b/debian/checkarray
@@ -150,6 +150,11 @@ for array in $arrays; do
     exit 4
   fi
 
+  if [ "$(cat /sys/block/$array/md/array_state)" = 'read-auto' ]; then
+    echo "$PROGNAME: W: array $array in auto-read-only state, skipping..." >&2
+    continue
+  fi
+
   case "$action" in
     idle)
       echo $action > $SYNC_ACTION_CTL




More information about the pkg-mdadm-commits mailing list