08e46ededa
* util/hostdisk.c (struct grub_util_biosdisk_data): New structure. (grub_util_biosdisk_open): Initialise disk->data. (struct linux_partition_cache): New structure. (linux_find_partition): Cache partition start positions; these are expensive to compute on every read and write. (open_device): Cache open file descriptor in disk->data, so that we don't have to reopen it and flush the buffer cache for consecutive operations on the same device. (grub_util_biosdisk_close): New function. (grub_util_biosdisk_dev): Set `close' member. * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c. * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise. * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise. * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise. * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise. |
||
---|---|---|
.. | ||
any-emu.rmk | ||
common.rmk | ||
i386-coreboot.rmk | ||
i386-efi.rmk | ||
i386-ieee1275.rmk | ||
i386-pc-cygwin-img-ld.sc | ||
i386-pc.rmk | ||
i386-qemu.rmk | ||
i386.rmk | ||
mips-qemu-mips.rmk | ||
mips-yeeloong.rmk | ||
mips.rmk | ||
powerpc-ieee1275.rmk | ||
sparc64-ieee1275.rmk | ||
tests.rmk | ||
x86_64-efi.rmk |