1
Description: Bump the values of GRUB_DISK_CACHE_SIZE and GRUB_DISK_CACHE_BITS
2
on EFI systems (and only on EFI sytems) to dramatically reduce the load times
3
for vmlinux and initrd. Forwarding this isn't required as upstream trunk
4
has completely rewritten how this all works.
5
Author: Adam Conrad <adconrad@debian.org>
6
Origin: other, http://blog.fpmurphy.com/2010/03/grub2-efi-support.html
7
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/944347
9
Last-Update: 2012-03-05
11
Index: b/include/grub/disk.h
12
===================================================================
13
--- a/include/grub/disk.h
14
+++ b/include/grub/disk.h
16
#define GRUB_DISK_CACHE_NUM 1021
18
/* The size of a disk cache in sector units. */
19
+#ifdef GRUB_MACHINE_EFI
20
+#define GRUB_DISK_CACHE_SIZE 1024
21
+#define GRUB_DISK_CACHE_BITS 8
23
#define GRUB_DISK_CACHE_SIZE 8
24
#define GRUB_DISK_CACHE_BITS 3
27
/* Return value of grub_disk_get_size() in case disk size is unknown. */
28
#define GRUB_DISK_SIZE_UNKNOWN 0xffffffffffffffffULL