* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
Add blocksize retrieval.
This commit is contained in:
parent
dfc8aeb042
commit
c66d641020
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
|
||||||
|
Add blocksize retrieval.
|
||||||
|
|
||||||
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Restore CFLAGS after efiemu check.
|
* configure.ac: Restore CFLAGS after efiemu check.
|
||||||
|
|
|
@ -283,6 +283,9 @@ grub_util_get_fd_sectors (int fd, const char *name, unsigned *log_secsize)
|
||||||
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
if (ioctl (fd, DIOCGSECTORSIZE, §or_size))
|
if (ioctl (fd, DIOCGSECTORSIZE, §or_size))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
# elif defined(__APPLE__)
|
||||||
|
if (ioctl (fd, DKIOCGETBLOCKSIZE, §or_size))
|
||||||
|
goto fail;
|
||||||
# elif defined(__sun__)
|
# elif defined(__sun__)
|
||||||
sector_size = minfo.dki_lbsize;
|
sector_size = minfo.dki_lbsize;
|
||||||
# elif defined(__NetBSD__)
|
# elif defined(__NetBSD__)
|
||||||
|
|
Loading…
Reference in a new issue