Support Openfirmware disks with non-512B sectors.
* grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block size of the disk. * (grub_ofdisk_get_block_size): New function. * (grub_ofdisk_prepare): Use the correct block size. * (grub_ofdisk_read): Likewise. * (grub_ofdisk_write): Likewise. * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size): New proto.
This commit is contained in:
parent
cc0e476fe8
commit
b5ea6ce03a
3 changed files with 70 additions and 5 deletions
|
@ -22,4 +22,7 @@
|
|||
extern void grub_ofdisk_init (void);
|
||||
extern void grub_ofdisk_fini (void);
|
||||
|
||||
extern grub_err_t grub_ofdisk_get_block_size (const char *device,
|
||||
grub_uint32_t *block_size);
|
||||
|
||||
#endif /* ! GRUB_INIT_HEADER */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue