]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
17 years agoTypo fix
proski [Fri, 18 Jul 2008 03:47:33 +0000 (03:47 +0000)] 
Typo fix

17 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 18 Jul 2008 03:21:47 +0000 (03:21 +0000)] 
2008-07-17  Pavel Roskin  <proski@gnu.org>

* configure.ac: Use -m32 or -m64 regardless of whether we had to
change target_cpu.  The compiler default can mismatch target_cpu
in any case.

17 years agoTypo fix
proski [Fri, 18 Jul 2008 01:13:58 +0000 (01:13 +0000)] 
Typo fix

17 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 18 Jul 2008 01:11:33 +0000 (01:11 +0000)] 
2008-07-17  Pavel Roskin  <proski@gnu.org>

* disk/efi/efidisk.c: Fix format warnings on x86_64.
* kern/efi/efi.c: Likewise.

17 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Thu, 17 Jul 2008 20:19:55 +0000 (20:19 +0000)] 
2008-07-17  Pavel Roskin  <proski@gnu.org>

* aclocal.m4 (grub_PROG_TARGET_CC): New macro.  Check if the
target compiler is functional.
* configure.ac: Call grub_PROG_TARGET_CC once all target flags
are set up.

17 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Thu, 17 Jul 2008 18:13:57 +0000 (18:13 +0000)] 
2008-07-17  Pavel Roskin  <proski@gnu.org>

* configure.ac: Default to efi platform for x86_64-apple.  Allow
powerpc64 CPU, default to ieee1275 platform for it.  Split CPU
adjustments from the rest, only do them if target is not
explicitly given.  Merge other adjustments with the final sanity
check.  Remove an extraneous check for supported CPU.  Be
specific which CPU and which platform is not supported.

17 years ago2008-07-17 Pavel Roskin <proski@gnu.org>
proski [Thu, 17 Jul 2008 15:31:16 +0000 (15:31 +0000)] 
2008-07-17  Pavel Roskin  <proski@gnu.org>

* configure.ac: Default to pc platform for x86_64.

17 years ago2008-07-17 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 17 Jul 2008 15:05:12 +0000 (15:05 +0000)] 
2008-07-17  Robert Millan  <rmh@aybabtu.com>

        Partial LinuxBIOS -> Coreboot rename.

        * conf/i386-linuxbios.rmk: Renamed to ...
        * conf/i386-coreboot.rmk: ... this.
        * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
        * configure.ac: Accept coreboot as input platform (but maintain
        compatibility with linuxbios).
        * include/grub/i386/linuxbios: Renamed to ...
        * include/grub/i386/coreboot: ... this.

17 years ago2008-07-17 Bean <bean123ch@gmail.com>
bean [Thu, 17 Jul 2008 09:50:26 +0000 (09:50 +0000)] 
2008-07-17  Bean  <bean123ch@gmail.com>

* conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
(appleldr_mod_SOURCE): New variavle.
(appleldr_mod_CFLAGS): Likewise.
(appleldr_mod_LDFLAGS): Likewise.
(pci_mod_SOURCES): Likewise.
(pci_mod_CFLAGS): Likewise.
(pci_mod_LDFLAGS): Likewise.
(lspci_mod_SOURCES): Likewise.
(lspci_mod_CFLAGS): Likewise.
(lspci_mod_LDFLAGS): Likewise.

* conf/x86_64-efi.rmk: New file.

* disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
macro.
(grub_efidisk_write): Likewise.

* include/efi/api.h (efi_call_0): New macro.
(efi_call_1): Likewise.
(efi_call_2): Likewise.
(efi_call_3): Likewise.
(efi_call_4): Likewise.
(efi_call_5): Likewise.
(efi_call_6): Likewise.

* include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
grub_rescue_cmd_chainloader.

* include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
(grub_pe32_optional_header): Change some fields based on i386 or
x86_64 platform.
(GRUB_PE32_PE32_MAGIC): Likewise.

* include/grub/efi/uga_draw.h: New file.

* include/grub/elf.h (STN_ABS): New constant.
(R_X86_64_NONE): Relocation constant for x86_64.
(R_X86_64_64): Likewise.
(R_X86_64_PC32): Likewise.
(R_X86_64_GOT32): Likewise.
(R_X86_64_PLT32): Likewise.
(R_X86_64_COPY): Likewise.
(R_X86_64_GLOB_DAT): Likewise.
(R_X86_64_JUMP_SLOT): Likewise.
(R_X86_64_RELATIVE): Likewise.
(R_X86_64_GOTPCREL): Likewise.
(R_X86_64_32): Likewise.
(R_X86_64_32S): Likewise.
(R_X86_64_16): Likewise.
(R_X86_64_PC16): Likewise.
(R_X86_64_8): Likewise.
(R_X86_64_PC8): Likewise.

* include/grub/i386/efi/pci.h: New file.

* include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
Change it value based on platform.
(GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
(GRUB_E820_RAM): Likewise.
(GRUB_E820_RESERVED): Likewise.
(GRUB_E820_ACPI): Likewise.
(GRUB_E820_NVS): Likewise.
(GRUB_E820_EXEC_CODE): Likewise.
(GRUB_E820_MAX_ENTRY): Likewise.
(grub_e820_mmap): New structure.
(linux_kernel_header): Change the efi field according to different
kernel version, also field from linux_kernel_header.

* include/grub/kernel.h (grub_module_info): Add padding for x86_64.

* include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
(GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
(GRUB_PCI_ADDR_SPACE_IO): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
(GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
(GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
(GRUB_PCI_ADDR_MEM_MASK): Likewise.
(GRUB_PCI_ADDR_IO_MASK): Likewise.

* include/grub/x86_64/efi/kernel.h: New file.

* include/grub/x86_64/efi/loader.h: Likewise.

* include/grub/x86_64/efi/machine.h: Likewise.

* include/grub/x86_64/efi/pci.h: Likewise.

* include/grub/x86_64/efi/time.h: Likewise.

* include/grub/x86_64/linux.h: Likewise.

* include/grub/x86_64/setjmp.h: Likewise.

* include/grub/x86_64/time.h: Likewise.

* include/grub/x86_64/types.h: Likewise.

* kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
 GRUB_TARGET_SIZEOF_VOID_P.

* kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
(grub_efi_locate_handle): Likewise.
(grub_efi_open_protocol): Likewise.
(grub_efi_set_text_mode): Likewise.
(grub_efi_stall): Likewise.
(grub_exit): Likewise.
(grub_reboot): Likewise.
(grub_halt): Likewise.
(grub_efi_exit_boot_services): Likewise.
(grub_get_rtc): Likewise.

* kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
(GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
(grub_efi_allocate_pages): Wrap efi calls.
(grub_efi_free_pages): Wrap efi calls.
(grub_efi_get_memory_map): Wrap efi calls.

* kern/x86_64/dl.c: New file.

* kern/x86_64/efi/callwrap.S: Likewise.

* kern/x86_64/efi/startup.S: Likewise.

* loader/efi/appleloader.c: Likewise.

* loader/efi/chainloader.c (cmdline): New variable.
(grub_chainloader_unload): Wrap efi calls.
(grub_chainloader_boot): Likewise.
(grub_rescue_cmd_chainloader): Wrap efi calls, handle
command line.

* loader/efi/chainloader_normal.c (chainloader_command):
Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
command line.

* loader/i386/efi/linux.c (allocate_pages): Change allocation
method.
(grub_e820_add_region): New function.
(grub_linux_boot): Construct e820 map from efi map, handle x86_64
booting.
(grub_find_video_card): New function.
(grub_linux_setup_video): New function.
(grub_rescue_cmd_linux): Probe for video information.

* normal/x86_64/setjmp.S: New file.

* term/efi/console.c (map_char): New function.
(grub_console_putchar): Map unicode char.
(grub_console_checkkey): Wrap efi calls.
(grub_console_getkey): Likewise.
(grub_console_getwh): Likewise.
(grub_console_gotoxy): Likewise.
(grub_console_cls): Likewise.
(grub_console_setcolorstate): Likewise.
(grub_console_setcursor): Likewise.

* util/i386/efi/grub-mkimage.c: Add support for x86_64.

17 years ago2008-07-16 Pavel Roskin <proski@gnu.org>
proski [Wed, 16 Jul 2008 07:06:11 +0000 (07:06 +0000)] 
2008-07-16  Pavel Roskin  <proski@gnu.org>

* loader/i386/efi/linux.c (allocate_pages): Fix warnings in
format strings.

17 years ago2008-07-16 Pavel Roskin <proski@gnu.org>
proski [Wed, 16 Jul 2008 06:55:42 +0000 (06:55 +0000)] 
2008-07-16  Pavel Roskin  <proski@gnu.org>

* util/i386/efi/grub-mkimage.c (get_target_address): Return a
pointer, not an integer.  This fixes a warning and prevents
precision loss on 64-bit systems.
(relocate_addresses): Remove unneeded cast.

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 13:29:53 +0000 (13:29 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* kern/i386/ieee1275/init.c: Include grub/cache.h.

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 13:27:02 +0000 (13:27 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* term/ieee1275/ofconsole.c: Disable code unused on i386.

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 13:22:27 +0000 (13:22 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
Fix comparison between signed and unsigned.

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:37:32 +0000 (04:37 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/ieee1275/console.h: Declare
grub_console_init() and grub_console_fini().

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:17:48 +0000 (04:17 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
It's empty and unused.

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:12:28 +0000 (04:12 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
beginning to avoid warnings with some compilers.

17 years ago2008-07-15 Pavel Roskin <proski@gnu.org>
proski [Tue, 15 Jul 2008 04:07:37 +0000 (04:07 +0000)] 
2008-07-15  Pavel Roskin  <proski@gnu.org>

* loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
[__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.

17 years ago2008-07-14 Pavel Roskin <proski@gnu.org>
proski [Mon, 14 Jul 2008 05:03:19 +0000 (05:03 +0000)] 
2008-07-14  Pavel Roskin  <proski@gnu.org>

* kern/env.c (grub_register_variable_hook): Don't copy empty
string, it leaks memory.  Pass "" to grub_env_set(), it should
handle constant strings.

17 years ago2008-07-14 Pavel Roskin <proski@gnu.org>
proski [Mon, 14 Jul 2008 04:46:19 +0000 (04:46 +0000)] 
2008-07-14  Pavel Roskin  <proski@gnu.org>

* commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
* commands/cmp.c (grub_cmd_cmp): Likewise.
* kern/dl.c (grub_dl_flush_cache): Likewise.
(grub_dl_load_core): Likewise.
* kern/elf.c (grub_elf32_load_phdrs): Likewise.
(grub_elf64_load_phdrs): Likewise.

17 years agoFix typos in ChangeLog and comments
proski [Sun, 13 Jul 2008 18:13:36 +0000 (18:13 +0000)] 
Fix typos in ChangeLog and comments

17 years ago2008-07-13 Pavel Roskin <proski@gnu.org>
proski [Sun, 13 Jul 2008 17:46:25 +0000 (17:46 +0000)] 
2008-07-13  Pavel Roskin  <proski@gnu.org>

* lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
between signed and unsigned.
(LzmaEnc_Finish): Fix warning about an unused parameter.

17 years ago2008-07-13 Bean <bean123ch@gmail.com>
bean [Sun, 13 Jul 2008 01:55:15 +0000 (01:55 +0000)] 
2008-07-13  Bean  <bean123ch@gmail.com>

* Makefile.in (enable_lzo): New rule.

* conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.

* configure.ac (ENABLE_LZO): New option --enable-lzo.

* boot/i386/pc/lnxboot.S: #include <config.h>.

* include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
its value accordding to the compression algorithm used, lzo or lzma.

* util/i386/pc/grub-mkimage.c (compress_kernel): Use different
compression algorithm according to configure macro.

* kern/i386/pc/startup.S (codestart): Likewise.

* kern/i386/pc/lzma_decode.S: New file.

* include/grub/lib/LzFind.h: Likewise.

* include/grub/lib/LzHash.h: Likewise.

* include/grub/lib/LzmaDec.h: Likewise.

* include/grub/lib/LzmaEnc.h: Likewise.

* include/grub/lib/LzmaTypes.h: Likewise.

* lib/LzFind.c: Likewise.

* lib/LzmaDec.c: Likewise.

* lib/LzmaEnc.c: Likewise.

17 years ago2008-07-13 Bean <bean123ch@gmail.com>
bean [Sun, 13 Jul 2008 01:13:12 +0000 (01:13 +0000)] 
2008-07-13  Bean  <bean123ch@gmail.com>

* fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
(grub_ext4_extent_header): New structure.
(grub_ext4_extent): Likewise.
(grub_ext4_extent_idx): Likewise.
(grub_ext4_find_leaf): New function.
(grub_ext2_read_block): Handle extents.

17 years ago2008-07-12 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 12 Jul 2008 15:40:50 +0000 (15:40 +0000)] 
2008-07-12  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.

17 years ago2008-07-11 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 11 Jul 2008 20:09:14 +0000 (20:09 +0000)] 
2008-07-11  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/40_custom.in: New file. Example on how to add custom
        entries to /etc/grub.d.
        * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
        40_custom (implicitly, by merging all the grub.d rules).

17 years ago2008-07-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 11 Jul 2008 17:35:06 +0000 (17:35 +0000)] 
2008-07-11  Pavel Roskin  <proski@gnu.org>

* commands/read.c (grub_getline): Fix invalid memory access.
Don't add newline to the variable value.

17 years ago2008-07-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 11 Jul 2008 16:40:45 +0000 (16:40 +0000)] 
2008-07-11  Pavel Roskin  <proski@gnu.org>

* term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
[!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
(serial_hw_get_port): Check validity of the port number.
(grub_cmd_serial): Check return value of serial_hw_get_port().

17 years ago2008-07-07 Pavel Roskin <proski@gnu.org>
proski [Mon, 7 Jul 2008 15:11:06 +0000 (15:11 +0000)] 
2008-07-07  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/diskboot.S (notification_string): Replace
"Loading kernel" with just "loading".  This is shorter, less
confusing and saves a few bytes for possible future changes.

17 years ago2008-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Jul 2008 01:24:19 +0000 (01:24 +0000)] 
2008-07-05  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
size for ATAPI devices, they are undefined.  Output sector
number in decimal form.

17 years ago2008-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Jul 2008 00:57:36 +0000 (00:57 +0000)] 
2008-07-05  Pavel Roskin  <proski@gnu.org>

* disk/ata.c: Use named constants for status bits.

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 03:26:10 +0000 (03:26 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
grub_addr_t before casting it to the void pointer to fix a
warning.  Non-addressable regions are discarded earlier.
(grub_arch_modules_addr): Cast _end to grub_addr_t.
* kern/i386/linuxbios/table.c: Include grub/misc.h.
(check_signature): Don't shadow table_header.
(grub_linuxbios_table_iterate): Cast numeric constants to
grub_linuxbios_table_header_t.
* include/grub/i386/linuxbios/init.h: Add noreturn attribute to
grub_stop().

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 03:01:55 +0000 (03:01 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
prevent warnings.

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 02:12:54 +0000 (02:12 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
pointer, which can cause warnings.  Support 64-bit addresses.

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 01:53:52 +0000 (01:53 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
of sizeof(long).  This fixes PowerPC image generation on x86_64.

17 years ago2008-07-04 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 3 Jul 2008 22:56:43 +0000 (22:56 +0000)] 
2008-07-04  Robert Millan  <rmh@aybabtu.com>

        This fixes a performance issue when pc & gpt partmap iterators
        didn't abort iteration even after our hook found what it was
        looking for (often causing expensive probes of non-existant drives).

        Some callers relied on previous buggy behaviour, since they would
        rise an error when their own hooks caused early abortion of its
        iteration.

        * kern/device.c (grub_device_open): Improve error message.
        * disk/lvm.c (grub_lvm_open): Likewise.
        * disk/raid.c (grub_raid_open): Likewise.

        * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
        when hook requests it, independently of grub_errno.
        (pc_partition_map_probe): Do not fail when find_func() caused
        early abortion of pc_partition_map_iterate().

        * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
        when hook requests it, independently of grub_errno.
        (gpt_partition_map_probe): Do not fail when find_func() caused
        early abortion of gpt_partition_map_iterate().

        * kern/partition.c (grub_partition_iterate): Abort parent iteration
        when hook requests it, independently of grub_errno.  Do not fail when
        part_map_iterate_hook() caused early abortion of p->iterate().

        * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
        when grub_partition_iterate() returned with non-zero.

17 years ago2008-07-03 Pavel Roskin <proski@gnu.org>
proski [Thu, 3 Jul 2008 20:53:00 +0000 (20:53 +0000)] 
2008-07-03  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_pio_write): Check status before writing,
like we do in grub_ata_pio_read().
(grub_ata_readwrite): Always write individual sectors.  Fix the
sector count for the remainder.
(grub_ata_write): Enable writing to ATA devices.  Correctly
report error for ATAPI devices.

17 years agoRemove svn:eol-style property for compatibility with Autoconf 2.62
proski [Thu, 3 Jul 2008 04:26:46 +0000 (04:26 +0000)] 
Remove svn:eol-style property for compatibility with Autoconf 2.62
generated configure, which uses bare carriage return to define ac_cr.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Thu, 3 Jul 2008 00:52:28 +0000 (00:52 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/cdboot.S: Add _start entry to fix a linker
warning.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 23:58:06 +0000 (23:58 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_readwrite): Don't increment sector number
for every read sector, we already increment it for the whole
batch.  This fixes reading more than 256 sectors at once.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 22:00:42 +0000 (22:00 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* util/grub-editenv.c (cmd_info): Cast argument to long
explicitly.  ptrdiff_t reduces to int on i386.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 20:51:46 +0000 (20:51 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* util/grub-editenv.c (main): Be specific which parameter is
missing.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 20:18:51 +0000 (20:18 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
(memdisk): Make memdisk_orig_addr a pointer.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 20:02:54 +0000 (20:02 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
for file offsets, use grub_off_t instead.  Fix printf format
warnings.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:37:09 +0000 (19:37 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* fs/reiserfs.c: Remove #warning, TODO list items don't belong
there.  Real unexpected warnings should not drown in the noise
about known problems.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:30:56 +0000 (19:30 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
grub_disk_addr_t for memory addresses.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:22:35 +0000 (19:22 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* loader/aout.c (grub_aout_load): Cast load_addr to pointer
explicitly to fix a warning.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:11:26 +0000 (19:11 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* util/grub-editenv.c (cmd_info): Fix warning in printf format.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:03:23 +0000 (19:03 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* Makefile.in (MODULE_LDFLAGS): New variable.
* aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro.  Check if
the linker accepts --build-id=none.
* configure.ac: Call grub_PROG_LD_BUILD_ID_NONE.  Substitute
MODULE_LDFLAGS.
* genmk.rb: Use MODULE_LDFLAGS when linking modules.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 18:40:32 +0000 (18:40 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
those in Linux XFS code.  Provide a way to access 64-bit parent
inode.
(grub_xfs_iterate_dir): Use the new names.  Avoid reading past
the end of struct grub_xfs_dir_header.

17 years ago2008-07-02 Bean <bean123ch@gmail.com>
bean [Wed, 2 Jul 2008 07:38:46 +0000 (07:38 +0000)] 
2008-07-02  Bean  <bean123ch@gmail.com>

* include/grub/ieee1275.h (grub_ieee1275_flag): New constant
GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
and GRUB_IEEE1275_FLAG_NO_ANSI.

* kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.

* kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.

* kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.

* term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
esc sequence on non ANSI terminal.
(grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.

* util/elf/grub-mkimage.c (add_segments): Move ELF header to the
beginning of file.

17 years ago2008-07-02 Bean <bean123ch@gmail.com>
bean [Wed, 2 Jul 2008 07:20:11 +0000 (07:20 +0000)] 
2008-07-02  Bean  <bean123ch@gmail.com>

* conf/common.rmk (bin_UTILITIES): Add grub-editenv.
(grub_editenv_SOURCES): New variable.
(pkglib_MODULES): Add loadenv.mod.
(loadenv_mod_SOURCES): New variable.
(loadenv_mod_CFLAGS): Likewise.
(loadenv_mod_LDFLAGS): Likewise.

* include/grub/envblk.h: New file.

* util/envblk.c: New file.

* util/grub-editenv.c: New file.

* commands/loadenv.c: New file.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 01:17:43 +0000 (01:17 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* include/multiboot2.h (struct multiboot_tag_module): Use char,
not unsigned char.  This fixes warnings and is consistent with
other tags.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 01:07:37 +0000 (01:07 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* disk/fs_uuid.c (search_fs_uuid): Correctly increment count.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 01:00:37 +0000 (01:00 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 00:54:18 +0000 (00:54 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* term/tparm.c (analyze): Always set *popcount.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 00:39:55 +0000 (00:39 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
cast to fix a warning.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 00:37:48 +0000 (00:37 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
cast to suppress a warning.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Tue, 1 Jul 2008 23:33:49 +0000 (23:33 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
grub_fshelp_read_file() expects.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Tue, 1 Jul 2008 23:18:25 +0000 (23:18 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* fs/fat.c: Fix UUID calculation on big-endian systems.  We
write uuid as a 32-bit value in CPU byte order, so declare and
use it as such.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Tue, 1 Jul 2008 23:02:16 +0000 (23:02 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* disk/raid.c: Cast grub_dprintf() arguments to unsigned long
long if the format specifier expects it.
* partmap/gpt.c (gpt_partition_map_iterate): Likewise.
* partmap/pc.c (pc_partition_map_iterate): Likewise.
* fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
long to fix a warning.
* fs/reiserfs.c (grub_reiserfs_read): Change casts in
grub_dprintf() arguments to fix warnings.

17 years ago2008-06-30 Pavel Roskin <proski@gnu.org>
proski [Mon, 30 Jun 2008 23:52:24 +0000 (23:52 +0000)] 
2008-06-30  Pavel Roskin  <proski@gnu.org>

* util/i386/pc/grub-setup.c (setup): Write install_dos_part and
install_bsd_part immediately before core.img is embedded or
modified on disk.  This fixes core.img verification if core.img
cannot be embedded.

17 years ago2008-06-30 Pavel Roskin <proski@gnu.org>
proski [Mon, 30 Jun 2008 20:44:58 +0000 (20:44 +0000)] 
2008-06-30  Pavel Roskin  <proski@gnu.org>

* util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
core_path to calculate the blocklist.
Patch from Javier Martín <lordhabbit@gmail.com>

17 years ago2008-06-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 29 Jun 2008 21:33:38 +0000 (21:33 +0000)] 
2008-06-29  Robert Millan  <rmh@aybabtu.com>

        * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro.  Maps filesystem
        block to disk block.
        (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
        Patch from Niels B\303\266hm <bitbucket@arcor.de>

17 years ago2008-06-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 29 Jun 2008 14:29:48 +0000 (14:29 +0000)] 
2008-06-29  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (font_path): Search for fonts in
        /boot/grub first, which is more likely to be readable (we aren't
        deciding where fonts live, just looking for them).

17 years ago2008-06-26 Pavel Roskin <proski@gnu.org>
proski [Thu, 26 Jun 2008 16:15:52 +0000 (16:15 +0000)] 
2008-06-26  Pavel Roskin  <proski@gnu.org>

* util/biosdisk.c (read_device_map): Don't leave dead map
entries for devices failing stat() check.

17 years ago2008-06-26 Pavel Roskin <proski@gnu.org>
proski [Thu, 26 Jun 2008 15:29:32 +0000 (15:29 +0000)] 
2008-06-26  Pavel Roskin  <proski@gnu.org>

* util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
core_path_dev for the core.img path on the target device.

17 years agoRemove trailing spaces and tabs, replace spaces with tabs when needed
proski [Thu, 26 Jun 2008 15:02:58 +0000 (15:02 +0000)] 
Remove trailing spaces and tabs, replace spaces with tabs when needed

17 years ago2008-06-26 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 26 Jun 2008 14:26:07 +0000 (14:26 +0000)] 
2008-06-26  Robert Millan  <rmh@aybabtu.com>

        * disk/fs_uuid.c: New file.
        * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
        (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
        (fs_uuid_mod_LDFLAGS): New variables.
        * include/grub/disk.h (grub_disk_dev_id): Add
        `GRUB_DISK_DEVICE_UUID_ID'.
        * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
        implement iterate().

17 years ago2008-06-26 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 26 Jun 2008 07:03:26 +0000 (07:03 +0000)] 
2008-06-26  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
        "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
        Linux image includes no initrd.

17 years ago2008-06-21 Javier Mart\303\255n <lordhabbit@gmail.com>
robertmh [Sat, 21 Jun 2008 14:21:03 +0000 (14:21 +0000)] 
2008-06-21  Javier Mart\303\255n  <lordhabbit@gmail.com>

        * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
        call to resolve the core image location that effectively appended the
        name twice.

17 years ago2008-06-21 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 21 Jun 2008 13:51:19 +0000 (13:51 +0000)] 
2008-06-21  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
        call from here ...

        * util/grub.d/10_hurd.in: ... to here ...
        * util/grub.d/10_linux.in: ... and here.

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 20:08:57 +0000 (20:08 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * kern/main.c (grub_main): Export `prefix' variable inmediately
        after it has been set by grub_machine_set_prefix().

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 13:09:16 +0000 (13:09 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * commands/search.c (search_label, search_fs_uuid, search_file): Print
        search result when not saving to variable, not the other way around.
        When saving to variable, abort iteration as soon as a match is found.

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 12:31:42 +0000 (12:31 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
        check for partition that provides /boot/grub.  Its logic is flawed,
        as it prevents prepare_grub_to_access_device() from being called
        multiple times.

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 12:29:44 +0000 (12:29 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
        "insmod" command directly when abstraction modules are needed,
        instead of reliing on GRUB_PRELOAD_MODULES (which had no effect
        since it had already been processed).

17 years ago2008-06-19 Pavel Roskin <proski@gnu.org>
proski [Thu, 19 Jun 2008 05:14:16 +0000 (05:14 +0000)] 
2008-06-19  Pavel Roskin  <proski@gnu.org>

* conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
changed.  This is needed in case GRUB_LIBDIR changes.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-linuxbios.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.

17 years ago2008-06-18 Pavel Roskin <proski@gnu.org>
proski [Thu, 19 Jun 2008 01:04:59 +0000 (01:04 +0000)] 
2008-06-18  Pavel Roskin  <proski@gnu.org>

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
kernel_elf_symlist.c to symlist.c for consistency with other
architectures.  Update all users.
* conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

17 years ago2008-06-18 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 18 Jun 2008 17:35:26 +0000 (17:35 +0000)] 
2008-06-18  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
        it in prefix.

        * util/i386/pc/grub-setup.c (main): Don't handle prefix at all.  Set
        `must_embed' to 1 when root_dev is a RAID device.  When dest_dev is
        a RAID device, run setup() for all members independently on whether
        LVM abstraction is being used.
        (setup): Don't handle prefix at all; let grub-mkimage take care of it.
        If grub-mkimage has set `*install_dos_part == -2', don't override this
        value.
        Perform *install_dos_part adjustments independently on whether
        we're embedding or not.
        Clarify error message when image is too big for embedding.
        Remove duplicate *install_dos_part stanza.

17 years ago2008-06-17 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 17 Jun 2008 15:27:14 +0000 (15:27 +0000)] 
2008-06-17  Robert Millan  <rmh@aybabtu.com>

        * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
        (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
        variables.
        (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
        values in grub_ofconsole_normal_color and
        grub_ofconsole_highlight_color (they're not directly related to
        background and foreground).
        (grub_ofconsole_setcolorstate): Extract background and foreground
        from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.

17 years ago2008-06-17 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 17 Jun 2008 13:35:04 +0000 (13:35 +0000)] 
2008-06-17  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Use
        /boot/grub for the check in last commit, not /boot (they could be
        different partitions).

17 years ago2008-06-16 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 16 Jun 2008 22:08:03 +0000 (22:08 +0000)] 
2008-06-16  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
        asked to setup access for the same partition that provides /boot,
        don't bother using UUIDs since our root already has the value we
        want.

17 years ago2008-06-16 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 16 Jun 2008 20:45:21 +0000 (20:45 +0000)] 
2008-06-16  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
        I2O devices.
        Patch from Sven Mueller <sven@debian.org>.

17 years ago2008-06-16 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 16 Jun 2008 20:29:55 +0000 (20:29 +0000)] 
2008-06-16  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub.in: Check for $EUID instead of $UID.
        Reported by Vincent Zweije.

17 years ago2008-06-16 Bean <bean123ch@gmail.com>
bean [Mon, 16 Jun 2008 19:02:08 +0000 (19:02 +0000)] 
2008-06-16  Bean  <bean123ch@gmail.com>

* fs/ext2.c (grub_ext2_blockgroup): Revert to pre journal state.
(grub_ext2_read_block): Likewise.
(grub_ext2_read_inode): Likewise.
(grub_ext2_mount): Likewise.
(grub_ext2_close): Likewise.
(grub_ext3_get_journal): Removed.

* fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre journal state.
(grub_reiserfs_read_symlink): Likewise.
(grub_reiserfs_mount): Likewise.
(grub_reiserfs_open): Likewise.
(grub_reiserfs_read): Likewise.
(grub_reiserfs_close): Likewise.
(grub_reiserfs_get_journal): Removed.

* fs/fshelp.c (grub_fshelp_read): Removed.
(grub_fshelp_map_block): Likewise.

* include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
(grub_fshelp_journal): Likewise.
(grub_fshelp_read): Likewise.
(grub_fshelp_map_block): Likewise.

17 years ago2008-06-16 Pavel Roskin <proski@gnu.org>
proski [Mon, 16 Jun 2008 05:00:50 +0000 (05:00 +0000)] 
2008-06-16  Pavel Roskin  <proski@gnu.org>

* conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
floating point anymore.
* include/grub/powerpc/libgcc.h: Leave only necessary exports.

17 years agoFix typos
proski [Mon, 16 Jun 2008 01:10:14 +0000 (01:10 +0000)] 
Fix typos

17 years ago2008-06-15 Pavel Roskin <proski@gnu.org>
proski [Mon, 16 Jun 2008 00:42:48 +0000 (00:42 +0000)] 
2008-06-15  Pavel Roskin  <proski@gnu.org>

* commands/ls.c (grub_ls_list_files): Use integer calculations
for human readable format, avoid floating point use.
* kern/misc.c (grub_ftoa): Remove.
(grub_vsprintf): Remove floating point support.

17 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 20:15:57 +0000 (20:15 +0000)] 
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in: Use the underliing device for loop-AES
        devices.
        Reported by Max Vozeler.

17 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 18:21:16 +0000 (18:21 +0000)] 
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
        in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
        skipped later.
        (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
        the beginning of the prefix.

        * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
        It is assumed that if we have a memdisk, grub-mkimage has set
        grub_prefix to include the "(memdisk)" drive in it.

17 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 14:19:34 +0000 (14:19 +0000)] 
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
        Initialize keyboard controller after registering the terminal, so that
        grub_printf() can be called from grub_keyboard_controller_init().

17 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 13:31:18 +0000 (13:31 +0000)] 
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
        extent-btree which is written as big endian on disk.
        Reported by Alain Greppin  <al@chilibi.org>.

17 years ago2008-06-14 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 14 Jun 2008 19:04:44 +0000 (19:04 +0000)] 
2008-06-14  Robert Millan  <rmh@aybabtu.com>

        * util/i386/efi/grub-install.in (modules): Remove `_chain'.
        * util/i386/pc/grub-install.in (modules): Likewise.

17 years ago2008-06-13 Pavel Roskin <proski@gnu.org>
proski [Fri, 13 Jun 2008 21:51:14 +0000 (21:51 +0000)] 
2008-06-13  Pavel Roskin  <proski@gnu.org>

* commands/ls.c (grub_ls_list_files): Fix format warnings.

17 years ago2008-06-13 Bean <bean123ch@gmail.com>
bean [Fri, 13 Jun 2008 06:47:46 +0000 (06:47 +0000)] 
2008-06-13  Bean  <bean123ch@gmail.com>

* commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.

* fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.

* fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
to indicate sparse block.

17 years ago2008-06-12 Pavel Roskin <proski@gnu.org>
proski [Thu, 12 Jun 2008 16:13:21 +0000 (16:13 +0000)] 
2008-06-12  Pavel Roskin  <proski@gnu.org>

* fs/ext2.c (grub_ext2_read_inode): Don't normalize block
number, grub_fshelp_read() does it for us.

17 years ago2008-06-12 Pavel Roskin <proski@gnu.org>
proski [Thu, 12 Jun 2008 14:48:27 +0000 (14:48 +0000)] 
2008-06-12  Pavel Roskin  <proski@gnu.org>

* fs/fshelp.c (grub_fshelp_read): New function.  Implement
linear disk read with journal translation.
* fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
* include/grub/fshelp.h: Declare grub_fshelp_read().

17 years ago2008-06-09 Pavel Roskin <proski@gnu.org>
proski [Mon, 9 Jun 2008 15:32:43 +0000 (15:32 +0000)] 
2008-06-09  Pavel Roskin  <proski@gnu.org>

* fs/minix.c (grub_minix_mount): Handle error reading
superblock.

17 years ago2008-06-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Jun 2008 22:54:34 +0000 (22:54 +0000)] 
2008-06-08  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
        don't append the RAID prefix afterwards.
        Reported by Clint Adams.

17 years ago2008-06-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Jun 2008 19:46:43 +0000 (19:46 +0000)] 
2008-06-08  Robert Millan  <rmh@aybabtu.com>

        Based on description from Pavel:
        * kern/disk.c (grub_disk_check_range): Rename to ...
        (grub_disk_adjust_range): ... this.  Add a comment explaining the
        tasks performed by this function.