2007-11-18 Christian Franke <franke@computer.org>

* disk/host.c (grub_host_open): Remove attribute unused from
	name parameter. Add check for "host". This fixes the problem
	that grub-emu does not find partitions.
This commit is contained in:
robertmh 2007-11-18 07:17:40 +00:00
parent 2e29408d1f
commit 3b8db1a82b
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-11-18 Christian Franke <franke@computer.org>
* disk/host.c (grub_host_open): Remove attribute unused from
name parameter. Add check for "host". This fixes the problem
that grub-emu does not find partitions.
2007-11-18 Christian Franke <franke@computer.org>
* util/hostfs.c (is_dir): New function.

View file

@ -34,8 +34,11 @@ grub_host_iterate (int (*hook) (const char *name))
}
static grub_err_t
grub_host_open (const char *name __attribute((unused)), grub_disk_t disk)
grub_host_open (const char *name, grub_disk_t disk)
{
if (grub_strcmp (name, "host"))
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "not a host disk");
disk->total_sectors = 0;
disk->id = (int) "host";