Use the common size routine in hostfs so we can read disks as well.

* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
	(grub_util_get_fd_size): ... this. Return size in bytes.
	All users updated.
	* grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
	grub_util_get_fd_size.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-29 15:23:31 +01:00
parent c66d641020
commit a121c9648e
5 changed files with 24 additions and 13 deletions

View file

@ -59,7 +59,7 @@ grub_hostdisk_os_dev_to_grub_drive (const char *os_dev, int add);
#if !defined(__MINGW32__)
grub_uint64_t
grub_util_get_fd_sectors (int fd, const char *name, unsigned *log_secsize);
grub_util_get_fd_size (int fd, const char *name, unsigned *log_secsize);
#endif
char *