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:
fzielcke 2009-07-29 14:11:50 +00:00
parent 388a7c7593
commit 67bb323a1c
3 changed files with 44 additions and 0 deletions

View file

@ -743,6 +743,16 @@ convert_system_partition_to_system_disk (const char *os_dev)
return path;
}
/* If this is a Mylex AcceleRAID Array. */
if (strncmp ("rs/c", p, 4) == 0)
{
/* /dev/rd/c[0-9]+d[0-9]+(p[0-9]+)? */
p = strchr (p, 'p');
if (p)
*p = '\0';
return path;
}
/* If this is a CCISS disk. */
if (strncmp ("cciss/c", p, sizeof ("cciss/c") - 1) == 0)
{