Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 76143 | Differences between
and this patch

Collapse All | Expand All

(-)grub-0.93/lib/device.c.raid (-1 / +8 lines)
Lines 689-695 Link Here
689
      if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
689
      if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
690
	strcpy (dev + strlen(dev) - 5, "/part");
690
	strcpy (dev + strlen(dev) - 5, "/part");
691
    }
691
    }
692
  sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);
692
693
  sprintf (dev + strlen(dev), "%s%d", 
694
	   /* Compaq smart and others */
695
	   (strncmp(dev, "/dev/ida/", 9) == 0 ||
696
            strncmp(dev, "/dev/ataraid/", 13) == 0 ||
697
	    strncmp(dev, "/dev/cciss/", 11) == 0 ||
698
	    strncmp(dev, "/dev/rd/", 8) == 0) ? "p" : "",
699
	   ((partition >> 16) & 0xFF) + 1);
693
  
700
  
694
  /* Open the partition.  */
701
  /* Open the partition.  */
695
  fd = open (dev, O_RDWR);
702
  fd = open (dev, O_RDWR);

Return to bug 76143