Hello community,

here is the log from the commit of package mdadm for openSUSE:Factory
checked in at Thu Aug 18 10:20:01 CEST 2011.



--------
--- mdadm/mdadm.changes 2011-08-10 04:55:26.000000000 +0200
+++ /mounts/work_src_done/STABLE/mdadm/mdadm.changes    2011-08-18 
08:32:25.000000000 +0200
@@ -1,0 +2,19 @@
+Thu Aug 18 06:30:45 UTC 2011 - [email protected]
+
+- boot.md: improve 'status' and add 'reload'
+  function.  Also change 'Raid' to 'RAID'
+  for consistency (bnc#709474)
+
+-------------------------------------------------------------------
+Thu Aug 18 06:01:39 UTC 2011 - [email protected]
+
+- Use udev rules file from upstream package, rather
+  have having a separate one.
+
+-------------------------------------------------------------------
+Thu Aug 18 03:01:57 UTC 2011 - [email protected]
+
+- Update to new upstream 3.2.2 plug git patches.
+  Also update FSF address in boot-md.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  64-md-raid.rules
  mdadm-3.1.4.tar.bz2
  mdmon-0.9-superblock-crash.patch

New:
----
  mdadm-3.2.2.tar.bz2
  mdadm-3.2.2_git3b1dab1bdbda0

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

Other differences:
------------------
++++++ mdadm.spec ++++++
--- /var/tmp/diff_new_pack.59h4Y3/_old  2011-08-18 10:18:04.000000000 +0200
+++ /var/tmp/diff_new_pack.59h4Y3/_new  2011-08-18 10:18:04.000000000 +0200
@@ -19,8 +19,8 @@
 
 
 Name:           mdadm
-Version:        3.1.4
-Release:        21
+Version:        3.2.2
+Release:        1
 BuildRequires:  sgmltool
 PreReq:         %fillup_prereq %insserv_prereq
 Obsoletes:      raidtools
@@ -37,9 +37,7 @@
 Source4:        boot.md
 Source5:        mkinitrd-setup.sh
 Source6:        mkinitrd-boot.sh
-Source7:        64-md-raid.rules
-# PATCH-FIX-OPENSUSE Fix crash if /proc/mdstat lists 0.9 superblocks (should 
be upstreamed)
-Patch2:         mdmon-0.9-superblock-crash.patch
+Patch0:         mdadm-3.2.2_git3b1dab1bdbda0
 
 %description
 Mdadm is a program that can be used to control Linux md devices. It is
@@ -54,7 +52,7 @@
 
 %prep
 %setup -q -a1
-%patch2 -p1
+%patch0 -p1
 
 %build
 %{suse_update_config -f}
@@ -78,7 +76,7 @@
 mkdir -p $RPM_BUILD_ROOT/var/run
 ln -s mdadm $RPM_BUILD_ROOT/var/run/mdadm
 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
-install -m 644 %_sourcedir/64-md-raid.rules $RPM_BUILD_ROOT/lib/udev/rules.d
+install -m 644 udev-md-raid.rules 
$RPM_BUILD_ROOT/lib/udev/rules.d/64-md-raid.rules
 
 %post
 [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup

++++++ boot.md ++++++
--- /var/tmp/diff_new_pack.59h4Y3/_old  2011-08-18 10:18:04.000000000 +0200
+++ /var/tmp/diff_new_pack.59h4Y3/_new  2011-08-18 10:18:04.000000000 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#     SUSE system startup script for MD Raid autostart
+#     SUSE system startup script for MD RAID autostart
 #     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
 #     Copyright (C) 2006  Marian Jancar, SUSE / Novell Inc.
 #          
@@ -15,9 +15,9 @@
 #     Lesser General Public License for more details.
 #      
 #     You should have received a copy of the GNU Lesser General Public
-#     License along with this library; if not, write to the Free Software
-#     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
-#     USA.
+#     License along with this program; if not, write to the Free Software
+#     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+#     02110-1301 USA.
 #
 ### BEGIN INIT INFO
 # Provides:          boot.md
@@ -96,7 +96,7 @@
 
 case "$1" in
     start)
-       echo -n "Starting MD Raid "
+       echo -n "Starting MD RAID "
        
        # create the /var/run/mdadm symlink if needed
        mkdir -p /dev/.mdadm
@@ -137,17 +137,32 @@
        fi
        ;;
     stop)
-       echo -n "Shutting down MD Raid "
-
+       echo -n "Not shutting down MD RAID - reboot/halt scripts do this."
+       rc_failed 3
        # Remember status and be verbose
        rc_status -v
        ;;
     status)
-       rc_failed 4
+       echo -n "MD RAID arrays:"
+       count=`grep -c ' active ' /proc/mdstat 2> /dev/null`
+       case $count in
+           0 ) echo -n " No arrays active"; rc_failed 3;;
+           1 ) echo -n " 1 array active";;
+           * ) echo -n " $count arrays active";;
+       esac
+
+       rc_status -v
+       ;;
+    reload)
+       # We cannot really reload the kernel module, or reassemble the
+       # arrays, but we can restart mdmon.  It will replace existing
+       # mdmon, or exit quietly if there is nothing to do.
+       echo -n "MD RAID: restarting mdmon if it is needed."
+       /sbin/mdmon --all --takeover
        rc_status -v
        ;;
     *)
-       echo "Usage: $0 {start|stop|status}"
+       echo "Usage: $0 {start|stop|status|reload}"
        exit 1
        ;;
 esac

++++++ mdadm-3.1.4.tar.bz2 -> mdadm-3.2.2.tar.bz2 ++++++
++++ 28772 lines of diff (skipped)

++++++ mdadm-3.2.2_git3b1dab1bdbda0 ++++++
++++ 1003 lines (skipped)


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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to