* disk/host.c: Include grub/misc.h to fix a warning. * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix warnings about implicit declarations.
* 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.
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and `util/hostfs.c'. * disk/host.c: New file. * util/hostfs.c: Likewise. * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk, return `GRUB_ERR_BAD_FS'. * fs/sfs.c (grub_sfs_mount): Likewise. * fs/xfs.c (grub_xfs_mount): Likewise. * include/grub/disk.h (enum grub_disk_dev_id): Add `GRUB_DISK_DEVICE_HOST_ID'. * util/grub-emu.c (main): Initialize and de-initialize hostfs.