SOURCES (LINUX_2_6_16): linux-2.6-md.patch (NEW) - fix RAID5 degra...

pluto pluto at pld-linux.org
Mon Jun 26 11:32:45 CEST 2006


Author: pluto                        Date: Mon Jun 26 09:32:45 2006 GMT
Module: SOURCES                       Tag: LINUX_2_6_16
---- Log message:
- fix RAID5 degradation after mdadm --assemble.
  thread: http://www.spinics.net/lists/raid/msg12859.html

---- Files affected:
SOURCES:
   linux-2.6-md.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/linux-2.6-md.patch
diff -u /dev/null SOURCES/linux-2.6-md.patch:1.1.2.1
--- /dev/null	Mon Jun 26 11:32:45 2006
+++ SOURCES/linux-2.6-md.patch	Mon Jun 26 11:32:38 2006
@@ -0,0 +1,22 @@
+--- linux-2.6.16/drivers/md/md.c.orig	2006-06-26 11:28:09.330393250 +0200
++++ linux-2.6.16/drivers/md/md.c	2006-06-26 11:29:11.958307250 +0200
+@@ -1022,6 +1022,11 @@
+ 	if (rdev->sb_size & bmask)
+ 		rdev-> sb_size = (rdev->sb_size | bmask)+1;
+ 
++	if (sb->level == cpu_to_le32(LEVEL_MULTIPATH))
++		rdev->desc_nr = -1;
++	else
++		rdev->desc_nr = le32_to_cpu(sb->dev_number);
++
+ 	if (refdev == 0)
+ 		ret = 1;
+ 	else {
+@@ -1116,7 +1121,6 @@
+ 
+ 	if (mddev->level != LEVEL_MULTIPATH) {
+ 		int role;
+-		rdev->desc_nr = le32_to_cpu(sb->dev_number);
+ 		role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]);
+ 		switch(role) {
+ 		case 0xffff: /* spare */
================================================================


More information about the pld-cvs-commit mailing list