Skip to contentSkip to conversation

2.4.28-rc1, more lost patches [8/10]

PATCH [email protected] 1 participant 1 message Oct 27, 2004

lore
Share & tools
lore
#0 lore raw

[8/10] Wilfried Weissmann: hptraid v0.03. from -ac/redhat.

Wilfried Weissmann
http://marc.theaimsgroup.com/?l=linux-kernel&m=106287827628378&w=2
in -ac/redhat

drivers/ide/raid/hptraid.c +16 -6
diff -urN 28rc1/drivers/ide/raid/hptraid.c 28rc1_aac/drivers/ide/raid/hptraid.c
@@ -18,7 +18,11 @@
    Based on work done by S�ren Schmidt for FreeBSD
 
    Changelog:
-   15.06.2003 [email protected]
+   19.08.2003 v0.03 [email protected]
+   	* register the raid volume only if all disks are available
+	* print a warning that raid-(0+)1 failover is not supported
+
+   15.06.2003 v0.02 [email protected]
    	* correct values of raid-1 superbock
 	* re-add check for availability of all disks
 	* fix offset bug in raid-1 (introduced in raid 0+1 implementation)
@@ -814,10 +818,6 @@
 			break;
 	}
 
-	/* Initialize the gendisk structure */
-	
-	ataraid_register_disk(device,raid[device].sectors);
-
 	/* Verify that we have all disks */
 
 	count=count_disks(raid+device);
@@ -844,7 +844,17 @@
 					return -ENODEV;
 				}
 			}
+			printk(KERN_WARNING "ataraid%i: raid-0+1 disk failover is not implemented!\n",
+					device);
 		}
+		else if (type == HPT_T_RAID_1) {
+			printk(KERN_WARNING "ataraid%i: raid-1 disk failover is not implemented!\n",
+					device);
+		}	
+		/* Initialize the gendisk structure */
+	
+		ataraid_register_disk(device,raid[device].sectors);
+
 		return 0;
 	}
 	
@@ -856,7 +866,7 @@
  	int retval=-ENODEV;
 	int device,i,count=0;
   	
-	printk(KERN_INFO "Highpoint HPT370 Softwareraid driver for linux version 0.02\n");
+	printk(KERN_INFO "Highpoint HPT370 Softwareraid driver for linux version 0.03\n");
 
 	for(i=0; oplist[i].op; i++) {
 		do