1 --- grub-0.95/lib/device.c.moreraid 2004-11-30 17:09:36.736099360 -0500
2 +++ grub-0.95/lib/device.c 2004-11-30 17:12:17.319686944 -0500
7 +get_cciss_disk_name (char * name, int controller, int drive)
9 + sprintf (name, "/dev/cciss/c%dd%d", controller, drive);
13 +get_cpqarray_disk_name (char * name, int controller, int drive)
15 + sprintf (name, "/dev/ida/c%dd%d", controller, drive);
18 get_ataraid_disk_name (char *name, int unit)
20 sprintf (name, "/dev/ataraid/d%c", unit + '0');
23 for (controller = 0; controller < 8; controller++)
25 - for (drive = 0; drive < 15; drive++)
26 + for (drive = 0; drive < 32; drive++)
33 #endif /* __linux__ */
36 + /* This is for cciss - we have
37 + /dev/cciss/c<controller>d<logical drive>p<partition>.
39 + cciss driver currently supports up to 8 controllers, 16 logical
40 + drives, and 7 partitions. */
42 + int controller, drive;
44 + for (controller = 0; controller < 8; controller++)
46 + for (drive = 0; drive < 16; drive++)
50 + get_cciss_disk_name (name, controller, drive);
51 + if (check_device (name))
53 + (*map)[num_hd + 0x80] = strdup (name);
54 + assert ((*map)[num_hd + 0x80]);
56 + /* If the device map file is opened, write the map. */
58 + fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
65 +#endif /* __linux__ */
68 + /* This is for cpqarray - we have
69 + /dev/ida/c<controller>d<logical drive>p<partition>.
71 + cpqarray driver currently supports up to 8 controllers, 16 logical
72 + drives, and 15 partitions. */
74 + int controller, drive;
76 + for (controller = 0; controller < 8; controller++)
78 + for (drive = 0; drive < 15; drive++)
82 + get_cpqarray_disk_name (name, controller, drive);
83 + if (check_device (name))
85 + (*map)[num_hd + 0x80] = strdup (name);
86 + assert ((*map)[num_hd + 0x80]);
88 + /* If the device map file is opened, write the map. */
90 + fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
97 +#endif /* __linux__ */
99 /* OK, close the device map file if opened. */