r23 - mdadm/trunk/debian

madduck at users.alioth.debian.org madduck at users.alioth.debian.org
Sat Jul 22 17:19:35 UTC 2006


Author: madduck
Date: 2006-07-22 17:19:35 +0000 (Sat, 22 Jul 2006)
New Revision: 23

Modified:
   mdadm/trunk/debian/changelog
   mdadm/trunk/debian/checkarray
Log:
* Check for presence of active RAID arrays and give an appropriate error if
  there are none present (closes: #379019).

Modified: mdadm/trunk/debian/changelog
===================================================================
--- mdadm/trunk/debian/changelog	2006-07-22 13:19:41 UTC (rev 22)
+++ mdadm/trunk/debian/changelog	2006-07-22 17:19:35 UTC (rev 23)
@@ -3,8 +3,10 @@
   * Re-added rootraiddoc.97.html which was mysteriously lost (closes: #378678).
   * Catching modprobe error in case of absence of the kernel modules, or
     a non-modular kernel. Thanks to Holger Levsen.
+  * Check for presence of active RAID arrays and give an appropriate error if
+    there are none present (closes: #379019).
 
- -- martin f. krafft <madduck at debian.org>  Sat, 22 Jul 2006 14:19:35 +0100
+ -- martin f. krafft <madduck at debian.org>  Sat, 22 Jul 2006 14:32:59 +0100
 
 mdadm (2.5.2-7) unstable; urgency=low
 

Modified: mdadm/trunk/debian/checkarray
===================================================================
--- mdadm/trunk/debian/checkarray	2006-07-22 13:19:41 UTC (rev 22)
+++ mdadm/trunk/debian/checkarray	2006-07-22 17:19:35 UTC (rev 23)
@@ -91,6 +91,11 @@
   exit 2
 fi
 
+if [ -z "$(ls /sys/block/md* 2>/dev/null)" ]; then
+  [ $quiet -lt 2 ] && echo "$PROGNAME: E: no active RAID arrays found." >&2
+  exit 5
+fi
+
 if [ -z "$(ls /sys/block/md*/md/sync_action 2>/dev/null)" ]; then
   [ $quiet -lt 2 ] && echo "$PROGNAME: E: no kernel support for parity checks." >&2
   exit 3




More information about the pkg-mdadm-commits mailing list