mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
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:
1 parent
cc0e476fe8
commit
b5ea6ce03a
3 files changed
+70
-5
No files matched your search
@@ -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 */
|
||||
Reference in new issue
Block a user