]> git.ipfire.org Git - thirdparty/grub.git/commit
2010-03-03 Colin Watson <cjwatson@ubuntu.com>
authorColin Watson <cjwatson@ubuntu.com>
Wed, 3 Mar 2010 10:44:12 +0000 (10:44 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Wed, 3 Mar 2010 10:44:12 +0000 (10:44 +0000)
commit22d7b6137a3b362b6230af23dc1009f4ed87a208
treef08d3965308f817554802bd33b6228fa4eccaecb
parentc4d0b332c54e34b6a40fcda05183943ee192f24c
2010-03-03  Colin Watson  <cjwatson@ubuntu.com>

* 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.
ChangeLog.hostdisk-speedup [new file with mode: 0644]
conf/common.rmk
conf/i386-efi.rmk
conf/i386-pc.rmk
conf/sparc64-ieee1275.rmk
conf/x86_64-efi.rmk
util/hostdisk.c