2009-07-29 Felix Zielcke <fzielcke@z-51.de>
* util/deviceiter.c (get_acceleraid_disk_name): New static function. (grub_util_iterate_devices): Handle Accelraid devices. * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
This commit is contained in:
parent
388a7c7593
commit
67bb323a1c
3 changed files with 44 additions and 0 deletions
|
@ -288,6 +288,12 @@ get_dac960_disk_name (char *name, int controller, int drive)
|
|||
sprintf (name, "/dev/rd/c%dd%d", controller, drive);
|
||||
}
|
||||
|
||||
static void
|
||||
get_acceleraid_disk_name (char *name, int controller, int drive)
|
||||
{
|
||||
sprintf (name, "/dev/rs/c%dd%d", controller, drive);
|
||||
}
|
||||
|
||||
static void
|
||||
get_ataraid_disk_name (char *name, int unit)
|
||||
{
|
||||
|
@ -545,6 +551,27 @@ grub_util_iterate_devices (int NESTED_FUNC_ATTR (*hook) (const char *, int),
|
|||
}
|
||||
}
|
||||
|
||||
/* This is for Mylex Acceleraid - we have
|
||||
/dev/rd/c<controller>d<logical drive>p<partition>. */
|
||||
{
|
||||
int controller, drive;
|
||||
|
||||
for (controller = 0; controller < 8; controller++)
|
||||
{
|
||||
for (drive = 0; drive < 15; drive++)
|
||||
{
|
||||
char name[24];
|
||||
|
||||
get_acceleraid_disk_name (name, controller, drive);
|
||||
if (check_device (name))
|
||||
{
|
||||
if (hook (name, 0))
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* This is for CCISS - we have
|
||||
/dev/cciss/c<controller>d<logical drive>p<partition>. */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue