Annotation of /trunk/grub/patches/grub-0.97-special-devices.patch
Parent Directory | Revision Log
Revision 1053 -
(hide annotations)
(download)
Fri Jun 25 10:52:50 2010 UTC (14 years, 3 months ago) by niro
File size: 695 byte(s)
Fri Jun 25 10:52:50 2010 UTC (14 years, 3 months ago) by niro
File size: 695 byte(s)
more patches and fixed ext4 patch
1 | niro | 1053 | --- grub-0.93/lib/device.c.raid 2002-05-20 05:53:46.000000000 -0400 |
2 | +++ grub-0.93/lib/device.c 2002-12-28 23:24:10.000000000 -0500 | ||
3 | @@ -689,7 +689,14 @@ | ||
4 | if (strcmp (dev + strlen(dev) - 5, "/disc") == 0) | ||
5 | strcpy (dev + strlen(dev) - 5, "/part"); | ||
6 | } | ||
7 | - sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1); | ||
8 | + | ||
9 | + sprintf (dev + strlen(dev), "%s%d", | ||
10 | + /* Compaq smart and others */ | ||
11 | + (strncmp(dev, "/dev/ida/", 9) == 0 || | ||
12 | + strncmp(dev, "/dev/ataraid/", 13) == 0 || | ||
13 | + strncmp(dev, "/dev/cciss/", 11) == 0 || | ||
14 | + strncmp(dev, "/dev/rd/", 8) == 0) ? "p" : "", | ||
15 | + ((partition >> 16) & 0xFF) + 1); | ||
16 | |||
17 | /* Open the partition. */ | ||
18 | fd = open (dev, O_RDWR); |