Annotation of /trunk/grub/patches/grub-0.97-i2o.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: 1051 byte(s)
Fri Jun 25 10:52:50 2010 UTC (14 years, 3 months ago) by niro
File size: 1051 byte(s)
more patches and fixed ext4 patch
1 | niro | 1053 | Only in grub-0.94/docs: grub.info |
2 | Only in grub-0.94/docs: multiboot.info | ||
3 | diff -ur grub-0.94/lib/device.c grub-0.94.new/lib/device.c | ||
4 | --- grub-0.94/lib/device.c 2004-05-07 04:50:36.375238696 +0200 | ||
5 | +++ grub-0.94.new/lib/device.c 2004-05-07 04:48:57.611253104 +0200 | ||
6 | @@ -419,6 +419,12 @@ | ||
7 | { | ||
8 | sprintf (name, "/dev/rd/c%dd%d", controller, drive); | ||
9 | } | ||
10 | + | ||
11 | +static void | ||
12 | +get_i2o_disk_name (char *name, int unit) | ||
13 | +{ | ||
14 | + sprintf (name, "/dev/i2o/hd%c", unit + 'a'); | ||
15 | +} | ||
16 | #endif | ||
17 | |||
18 | /* Check if DEVICE can be read. If an error occurs, return zero, | ||
19 | @@ -789,6 +795,26 @@ | ||
20 | } | ||
21 | } | ||
22 | } | ||
23 | + | ||
24 | + /* I2O disks. */ | ||
25 | + for (i = 0; i < 8; i++) | ||
26 | + { | ||
27 | + char name[16]; | ||
28 | + | ||
29 | + get_i2o_disk_name (name, i); | ||
30 | + if (check_device (name)) | ||
31 | + { | ||
32 | + (*map)[num_hd + 0x80] = strdup (name); | ||
33 | + assert ((*map)[num_hd + 0x80]); | ||
34 | + | ||
35 | + /* If the device map file is opened, write the map. */ | ||
36 | + if (fp) | ||
37 | + fprintf (fp, "(hd%d)\t%s\n", num_hd, name); | ||
38 | + | ||
39 | + num_hd++; | ||
40 | + } | ||
41 | + } | ||
42 | + | ||
43 | #endif /* __linux__ */ | ||
44 | |||
45 | /* OK, close the device map file if opened. */ |