diff --git a/ChangeLog b/ChangeLog index e4806bd6d..114821ae8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-18 Christian Franke + + * 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 * util/hostfs.c (is_dir): New function. diff --git a/disk/host.c b/disk/host.c index 5b3c4f0f4..6767f5a3c 100644 --- a/disk/host.c +++ b/disk/host.c @@ -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";