raidstart program device detect problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 I found some problem in raidtools2.

raiddevice md1 cannot start if raiddevice md10 was setup and running.

raidstart program check running device partially.

--- 1/raidtools2-0.90.20010914/raid_io.c	Wed Dec  1 19:30:26 2004
+++ raidtools2-0.90.20010914/raid_io.c	Wed Nov 24 19:41:42 2004
@@ -528,12 +528,14 @@
 	if ((ch = strstr(p->md_name, "/md")) == NULL)
 		return 0;
 	strcpy(buffer, ch+1);
+	strcat(buffer, " : active");
 	if ((fp = fopen("/proc/mdstat", "r")) == NULL)
 		return 0;
 	while (1) {
 		if ((fgets(line, MAX_LINE_LENGTH, fp)) == NULL)
 			break;
-		if (strstr(line, buffer) && !strstr(line, "inactive")) {
+		if (strstr(line, buffer))
+		{
 			fprintf(stderr, "%s: active -- run raidstop\n", p->md_name);
 			fclose(fp);
 			return 1;
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux