mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-17 17:24:13 +00:00
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:
parent
2e29408d1f
commit
3b8db1a82b
@ -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>
|
2007-11-18 Christian Franke <franke@computer.org>
|
||||||
|
|
||||||
* util/hostfs.c (is_dir): New function.
|
* util/hostfs.c (is_dir): New function.
|
||||||
|
@ -34,8 +34,11 @@ grub_host_iterate (int (*hook) (const char *name))
|
|||||||
}
|
}
|
||||||
|
|
||||||
static grub_err_t
|
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->total_sectors = 0;
|
||||||
disk->id = (int) "host";
|
disk->id = (int) "host";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user