* util/getroot.c (convert_system_partition_to_system_disk); Add etherd

names.
	Reported by: Bastian Blank.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-03 22:59:16 +02:00
parent 9e8bc27a40
commit 56bb5dd518
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
* util/getroot.c (convert_system_partition_to_system_disk); Add etherd
names.
Reported by: Bastian Blank.
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when

View File

@ -1740,6 +1740,20 @@ convert_system_partition_to_system_disk (const char *os_dev, struct stat *st,
return path;
}
/* If this is an AOE disk. */
if (strncmp ("etherd/e", p, sizeof ("etherd/e") - 1) == 0)
{
/* /dev/etherd/e[0-9]+\.[0-9]+(p[0-9]+)? */
p = strchr (p, 'p');
if (p)
{
*is_part = 1;
*p = '\0';
}
return path;
}
/* If this is a Compaq Intelligent Drive Array. */
if (strncmp ("ida/c", p, sizeof ("ida/c") - 1) == 0)
{