Hello community,

here is the log from the commit of package mdadm for openSUSE:11.4
checked in at Tue Jun 21 18:50:00 CEST 2011.



--------
--- old-versions/11.4/all/mdadm/mdadm.changes   2011-03-01 23:16:34.000000000 
+0100
+++ 11.4/mdadm/mdadm.changes    2011-06-21 08:33:58.000000000 +0200
@@ -1,0 +2,13 @@
+Tue Jun 21 06:22:23 UTC 2011 - [email protected]
+
+- 64-md-raid.rules - Don't ignore partitions when
+  trying to ignore inactive arrays.  The earlier
+  fix to this file cause partition device files
+  to not get creates bnc#684291
+
+- super1-byteorder-fix - perform correct byte-order
+  conversion when checking superblock for assembly.
+  This affects v1.x metadata on bigendian machines
+  only.  bnc#699667
+
+-------------------------------------------------------------------

Package does not exist at destination yet. Using Fallback 
old-versions/11.4/all/mdadm
Destination is old-versions/11.4/UPDATES/all/mdadm
calling whatdependson for 11.4-i586


New:
----
  super1-byteorder-fix

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

Other differences:
------------------
++++++ mdadm.spec ++++++
--- /var/tmp/diff_new_pack.XuR9o0/_old  2011-06-21 18:48:20.000000000 +0200
+++ /var/tmp/diff_new_pack.XuR9o0/_new  2011-06-21 18:48:20.000000000 +0200
@@ -20,7 +20,7 @@
 
 Name:           mdadm
 Version:        3.1.4
-Release:        13.<RELEASE4>
+Release:        13.<RELEASE19>
 BuildRequires:  sgmltool
 PreReq:         %fillup_prereq %insserv_prereq
 Obsoletes:      raidtools
@@ -40,6 +40,7 @@
 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
+Patch3:         super1-byteorder-fix
 
 %description
 Mdadm is a program that can be used to control Linux md devices. It is
@@ -55,6 +56,7 @@
 %prep
 %setup -q -a1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{suse_update_config -f}

++++++ 64-md-raid.rules ++++++
--- /var/tmp/diff_new_pack.XuR9o0/_old  2011-06-21 18:48:20.000000000 +0200
+++ /var/tmp/diff_new_pack.XuR9o0/_new  2011-06-21 18:48:20.000000000 +0200
@@ -9,7 +9,7 @@
 KERNEL!="md*", GOTO="md_end"
 
 #this extra caution avoids some races with the device disappearing
-TEST!="md/array_state", GOTO="md_end"
+ENV{DEVTYPE}=="disk", TEST!="md/array_state", GOTO="md_end"
 # container devices have a metadata version of e.g. 'external:ddf' and
 # never leave state 'inactive'
 ATTR{md/metadata_version}=="external:[A-Za-z]*", 
ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"

++++++ super1-byteorder-fix ++++++
Fix incorrect test in super1.c

Refernces: bnc#699667

The dev_roles array has 16bit fields, we need to byteswap
'raid_disk' as a 16bit number before comparing against dev_roles.

This bug only affect big-endian machines and can cause a meaningless warning:
   wrong state in superblock

and could in unusual circumstances cause array assembly to fail.

Signed-off-by: NeilBrown <[email protected]>
---
 super1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- mdadm-3.1.4.orig/super1.c
+++ mdadm-3.1.4/super1.c
@@ -673,7 +673,7 @@ static int update_super1(struct supertyp
                int d = info->disk.number;
                int want;
                if (info->disk.state == 6)
-                       want = __cpu_to_le32(info->disk.raid_disk);
+                       want = __cpu_to_le16(info->disk.raid_disk);
                else
                        want = 0xFFFF;
                if (sb->dev_roles[d] != want) {

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



Remember to have fun...

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

Reply via email to