~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to debian/patches/efi_disk_cache.patch

  • Committer: Package Import Robot
  • Author(s): Colin Watson, Adam Conrad, Colin Watson, Debconf translations
  • Date: 2012-03-05 16:58:01 UTC
  • mto: This revision was merged to the branch mainline in revision 135.
  • Revision ID: package-import@ubuntu.com-20120305165801-cufyqpv25s65lfgf
Tags: 1.99-15
[ Adam Conrad ]
* grub.cfg_400.patch: Redirect grep stdout to /dev/null since
  grub-mkconfig is "exec > grub.cfg.new", which causes grep's input
  and output to be the same FD (LP: #934269) (closes: #652972)
* efi_disk_cache.patch: Bump the disk cache on EFI systems to
  dramatically reduce load times for vmlinux/initrd (LP: #944347)

[ Colin Watson ]
* no_libzfs.patch: Use xasprintf rather than asprintf.
* Backport from upstream:
  - Rewrite XFS btree parsing; fixes invalid BMAP (closes: #657776).
  - Handle newer autotools, and add some missing quotes in the process.
    (Note that this moves grub-mkconfig_lib and update-grub_lib to
    /usr/share/grub; I added links in /usr/lib/grub for compatibility.)
  - Fix incorrect identifiers in bash-completion (closes: #661415).
  - Add support for GRUB_CMDLINE_GNUMACH (closes: #660493).
* Build with GCC 4.6 (closes: #654727).

[ Debconf translations ]
* Dutch (Jeroen Schot).  Closes: #651275
* Bulgarian (Damyan Ivanov).  Closes: #653356
* Icelandic (Sveinn í Felli). 
* Ukrainian (Yatsenko Alexandr).  Closes: #654294
* Italian (Luca Monducci).  Closes: #654304
* Thai (Theppitak Karoonboonyanan).  Closes: #656551
* Uyghur (Abduqadir Abliz)
* Indonesian (Mahyuddin Susanto).  Closes: #656705
* Hebrew (Omer Zak).  Closes: #656852
* Turkish (Atila KOÇ).  Closes: #656907
* Polish (Michał Kułach).  Closes: #657265
* Asturian (Mikel González).
* Dzongkha (Dawa Pemo)
* Tamil (Dr.T.Vasudevan). 
* Belarusian (Viktar Siarhiejczyk).  Closes: #662615

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
8
Forwarded: not-needed
 
9
Last-Update: 2012-03-05
 
10
 
 
11
Index: b/include/grub/disk.h
 
12
===================================================================
 
13
--- a/include/grub/disk.h
 
14
+++ b/include/grub/disk.h
 
15
@@ -133,8 +133,13 @@
 
16
 #define GRUB_DISK_CACHE_NUM    1021
 
17
 
 
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
 
22
+#else
 
23
 #define GRUB_DISK_CACHE_SIZE   8
 
24
 #define GRUB_DISK_CACHE_BITS   3
 
25
+#endif
 
26
 
 
27
 /* Return value of grub_disk_get_size() in case disk size is unknown. */
 
28
 #define GRUB_DISK_SIZE_UNKNOWN  0xffffffffffffffffULL