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

@ -1,3 +1,13 @@
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
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.
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]: