]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
13 years ago * include/grub/types.h (grub_properly_aligned_t): New type.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:54:59 +0000 (01:54 +0100)] 
* include/grub/types.h (grub_properly_aligned_t): New type.
(GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
(grub_get_unaligned16): Add explicit casts.
(grub_get_unaligned32): Likewise.
(grub_get_unaligned64): Likewise.
(grub_set_unaligned16): New function.
(grub_set_unaligned32): Likewise.

13 years ago * grub-core/normal/datetime.c (grub_weekday_names): Make const.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:45:38 +0000 (01:45 +0100)] 
* grub-core/normal/datetime.c (grub_weekday_names): Make const.

13 years ago * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:41:16 +0000 (01:41 +0100)] 
* grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
* grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
* grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.

13 years ago * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:36:09 +0000 (01:36 +0100)] 
* grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
conditionals.

13 years ago * grub-core/kern/emu/main.c (main): Add missing const qualifier.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:32:41 +0000 (01:32 +0100)] 
* grub-core/kern/emu/main.c (main): Add missing const qualifier.
* grub-core/loader/efi/appleloader.c (devdata): Likewise.

13 years ago Unify and improve RAID and crypto xor.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:26:53 +0000 (01:26 +0100)] 
Unify and improve RAID and crypto xor.

* grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
changed to grub_crypto_xor
* grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
* include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
Use bigger types when possible.

13 years ago * grub-core/disk/raid.c (scan_devices): Fix condition.
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:19:47 +0000 (01:19 +0100)] 
* grub-core/disk/raid.c (scan_devices): Fix condition.

13 years ago * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:07:06 +0000 (01:07 +0100)] 
* grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
Make name a const ptr.

13 years ago * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
Vladimir 'phcoder' Serbinenko [Tue, 13 Dec 2011 00:00:34 +0000 (01:00 +0100)] 
* grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
first argument a const pointer.
* grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
proto.
(grub_children_iterate): Likewise.
(grub_machine_mmap_iterate): Remove redundant declaration.

13 years ago * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:55:00 +0000 (00:55 +0100)] 
* grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
(grub_cmd_acpi) [!x86]: Disable EBDA.

13 years ago Enable UTF8 in gnulib regexp.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:50:49 +0000 (00:50 +0100)] 
Enable UTF8 in gnulib regexp.

* config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
* grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
(isupper): Use grub_isupper.
(isascii): New inline function.
* grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
* grub-core/lib/posix_wrap/wctype.h: Likewise.
* grub-core/normal/charset.c (grub_utf8_process): New function.
(grub_utf8_to_utf16): Use grub_utf8_process.
(grub_encode_utf8_character): New function.
(grub_ucs4_to_utf8): Use grub_encode_utf8_character.
* include/grub/charset.h (grub_utf8_process): New declaration.
(grub_encode_utf8_character): Likewise.
* include/grub/misc.h (grub_islower): New inline function.
(grub_isupper): Likewise.
(grub_strchrsub): Moved down to fix the definitions.

13 years ago * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:29:42 +0000 (00:29 +0100)] 
* grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
specification.

13 years ago * include/grub/loader.h (grub_loader_register_preboot_hook):
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 23:28:14 +0000 (00:28 +0100)] 
* include/grub/loader.h (grub_loader_register_preboot_hook):
Use struct preboot * and not void * for handle. All users updated.
(grub_loader_unregister_preboot_hook): Likewise.

13 years ago * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 21:40:43 +0000 (22:40 +0100)] 
* include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
* grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
UTF-16-BE. All users updated.
(grub_hfsplus_cmp_catkey): Fix unicode handling.
(grub_hfsplus_iterate_dir): Likewise.
(grub_hfsplus_label): Likewise.

13 years ago * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
Vladimir 'phcoder' Serbinenko [Mon, 12 Dec 2011 21:20:14 +0000 (22:20 +0100)] 
* grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.

13 years ago Add missing const qualifiers.
Vladimir 'phcoder' Serbinenko [Wed, 30 Nov 2011 15:20:13 +0000 (16:20 +0100)] 
Add missing const qualifiers.

* grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
* grub-core/commands/lspci.c (grub_pci_classname): Likewise.
* grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
* grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
(grub_lvm_check_flag): Likewise.
* grub-core/efiemu/i386/coredetect.c
(grub_efiemu_get_default_core_name): Likewise
* grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
* grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
* grub-core/fs/ntfs.c (fixup): Likewise.
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
* grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
(fzap_lookup): Likewise.
(zap_lookup): Likewise.
* grub-core/gnulib/regcomp.c (init_dfa): Likewise.
* grub-core/lib/legacy_parse.c (check_option): Likewise.
* grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
* grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
(grub_freebsd_add_meta_module): Likewise.
(grub_cmd_freebsd_module): Likewise.
* grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
* grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
(grub_xnu_writetree_get_size): Likewise.
(grub_xnu_writetree_toheap_real): Likewise.
(grub_xnu_find_key): Likewise.
(grub_xnu_create_key): Likewise.
(grub_xnu_create_value): Likewise.
(grub_xnu_register_memory): Likewise.
(grub_xnu_check_os_bundle_required): Likewise.
(grub_xnu_scan_dir_for_kexts): Likewise.
(grub_xnu_load_kext_from_dir): Likewise.
* grub-core/normal/color.c (color_list): Likewise.
* grub-core/normal/completion.c (current_word): Likewise.
* grub-core/normal/menu_entry.c (insert_string): Likewise.
* grub-core/term/serial.c (grub_serial_find): Likewise.
* grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
* include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
Likewise.
* include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
(grub_freebsd_add_meta_module): Likewise.
* include/grub/lib/arg.h (grub_arg_option): Likewise.
* include/grub/net.h (grub_net_card_driver): Likewise.
(grub_net_card): Likewise.
(grub_net_app_protocol): Likewise.
* include/grub/parttool.h (grub_parttool_argdesc): Likewise.
* include/grub/serial.h (grub_serial_find): Likewise.
* include/grub/tparm.h (grub_terminfo_tparm): Likewise.
* include/grub/xnu.h (grub_xnu_create_key): Likewise.
(grub_xnu_create_value): Likewise.
(grub_xnu_find_key): Likewise.
(grub_xnu_scan_dir_for_kexts): Likewise.
(grub_xnu_load_kext_from_dir): Likewise.

* include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
* grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
* include/grub/zfs/zio_checksum.h (zio_checksum_info):
Moved from here ...
* grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.

13 years ago* util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
Colin Watson [Mon, 28 Nov 2011 01:10:00 +0000 (01:10 +0000)] 
* util/getroot.c (find_root_device_from_libzfs): Use xasprintf.

13 years ago * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
Vladimir 'phcoder' Serbinenko [Sun, 27 Nov 2011 01:34:22 +0000 (02:34 +0100)] 
* grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
(read_device): Fix size calculation.

13 years ago2011-11-25 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 25 Nov 2011 22:07:33 +0000 (23:07 +0100)] 
2011-11-25  Robert Millan  <rmh@gnu.org>

        * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
        (find_root_device_from_libzfs): Add zpool output parser to be used
        as fallback when libzfs isn't available.

13 years ago * po/Makefile.in.in: Add missing escape-continuation.
Seth Goldberg [Fri, 25 Nov 2011 13:16:44 +0000 (14:16 +0100)] 
* po/Makefile.in.in: Add missing escape-continuation.

13 years ago * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
Vladimir 'phcoder' Serbinenko [Fri, 25 Nov 2011 13:12:05 +0000 (14:12 +0100)] 
* grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.

13 years ago * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
Vladimir 'phcoder' Serbinenko [Wed, 16 Nov 2011 20:40:50 +0000 (21:40 +0100)] 
* grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.

13 years ago * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
Vladimir 'phcoder' Serbinenko [Wed, 16 Nov 2011 20:38:00 +0000 (21:38 +0100)] 
* grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.

13 years ago * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
Vladimir 'phcoder' Serbinenko [Wed, 16 Nov 2011 20:35:40 +0000 (21:35 +0100)] 
* grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.

13 years ago * grub-core/lib/adler32.c: Add missing license specification.
Vladimir 'phcoder' Serbinenko [Mon, 14 Nov 2011 13:25:09 +0000 (14:25 +0100)] 
* grub-core/lib/adler32.c: Add missing license specification.
* grub-core/lib/crc64.c: Likewise.
* grub-core/loader/i386/pc/plan9.c: Likewise.
* grub-core/partmap/plan.c: Likewise.

13 years ago Add facility to debug GRUB with gdb under qemu.
Lubomir Kundrak [Sun, 13 Nov 2011 21:59:46 +0000 (22:59 +0100)] 
Add facility to debug GRUB with gdb under qemu.

* grub-core/gdb_grub.in: New file.
* grub-core/gmodule.pl.in: Likewise.
* grub-core/Makefile.core.def (gmodule.pl): New script.
(gdb_grub): Likewise.

13 years ago * util/grub-mount.c (argp_parser): Accept relative pathes.
Vladimir 'phcoder' Serbinenko [Sun, 13 Nov 2011 18:53:12 +0000 (19:53 +0100)] 
* util/grub-mount.c (argp_parser): Accept relative pathes.
* util/grub-fstest.c (argp_parser): Likewise.

13 years ago Plan9 support.
Vladimir 'phcoder' Serbinenko [Sun, 13 Nov 2011 18:38:08 +0000 (19:38 +0100)] 
Plan9 support.

* Makefile.util.def (libgrubmods): Add
grub-core/partmap/plan.c.
* docs/grub.texi: Notice Plan9 support.
* grub-core/Makefile.core.def (plan9): New module.
(part_plan): Likewise.
* grub-core/loader/i386/pc/plan9.c: New file.
* grub-core/partmap/plan.c: Likewise.
* include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
define.
(GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
* include/grub/mm.h (grub_extend_alloc): New inline function.

13 years ago Make Reed-Solomon faster by using power of generator representation of
Vladimir 'phcoder' Serbinenko [Sun, 13 Nov 2011 13:48:19 +0000 (14:48 +0100)] 
Make Reed-Solomon faster by using power of generator representation of
GF(256)*.

* grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
(gf_double_t): Likewise.
(gf_invert): Removed.
(gf_powx): New array.
(gf_powx_inv): Likewise.
(scratch): Move higher.
(gf_reduce): Removed.
(gf_mul): Use powx.
(gf_invert): Likewise.
(init_inverts): Replaced with ...
(init_powx): ...this. All users updated.
(pol_evaluate): Replace multiplications with additions.
(rs_encode): Likewise.
(gauss_eliminate): Call gf_invert.
(grub_reed_solomon_add_redundancy): Call init_powx.
(grub_reed_solomon_recover): Call init_powx unconditionally.

13 years agoFix a mismerge
Vladimir 'phcoder' Serbinenko [Sun, 13 Nov 2011 11:52:21 +0000 (12:52 +0100)] 
Fix a mismerge

13 years agoMerge mainline into plan9
Vladimir 'phcoder' Serbinenko [Sun, 13 Nov 2011 11:48:39 +0000 (12:48 +0100)] 
Merge mainline into plan9

13 years ago * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 23:07:08 +0000 (00:07 +0100)] 
* grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.

13 years ago * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 23:01:06 +0000 (00:01 +0100)] 
* grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
disk->partiton for safety.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 22:46:47 +0000 (23:46 +0100)] 
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
Fix a memory leak.
(grub_util_biosdisk_get_grub_dev): Add a useful debug info.

13 years ago * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 22:42:49 +0000 (23:42 +0100)] 
* grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.

13 years ago * include/grub/lvm.h (grub_lvm_pv): Correct start type.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 22:35:20 +0000 (23:35 +0100)] 
* include/grub/lvm.h (grub_lvm_pv): Correct start type.

13 years agoAdd copyright year.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 22:16:48 +0000 (23:16 +0100)] 
Add copyright year.

13 years ago Fix spaces handling in proc/self/mountinfo.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 22:14:51 +0000 (23:14 +0100)] 
Fix spaces handling in proc/self/mountinfo.

* util/getroot.c (unescape): New function.
(grub_find_root_device_from_mountinfo): Use unescape.

13 years ago Support ZFS embedding.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 20:46:52 +0000 (21:46 +0100)] 
Support ZFS embedding.

* grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
(grub_zfs_fs): Register grub_zfs_embed.

13 years ago Fix MIPS compilation.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 20:38:04 +0000 (21:38 +0100)] 
Fix MIPS compilation.

* grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
* include/grub/offsets.h: Rename decompressor fields from
GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
* util/grub-mkimage.c (image_targets): Use new names.

13 years ago Defer multiboot device parsing until we're in compressed part.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 20:12:52 +0000 (21:12 +0100)] 
Defer multiboot device parsing until we're in compressed part.

* grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
bsd_part. setdevice has fallen into disuse.
* grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
(bsd_part): Likewise.
(boot_dev): New variable.
(multiboot_trampoline): Don't parse multiboot device.
Pass multiboot device in %edx.
* grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
grub_boot_device.
* grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
Likewise.
* grub-core/kern/i386/pc/startup.S: Save edx.
(grub_boot_drive): Removed.
(grub_install_dos_part): Likewise.
(grub_install_bsd_part): Likewise.
(grub_boot_device): New variable.
* include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
(grub_install_bsd_part): Likewise.
(grub_boot_drive): Likewise.
(grub_boot_device): New variable.
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
Removed.
(GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
(GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
(GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
(GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
* util/grub-install.in: Remove redundant condition.

13 years ago Fix bug introduced by previous commit.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 19:53:46 +0000 (20:53 +0100)] 
Fix bug introduced by previous commit.

* grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.

13 years ago Use decompressors framework on i386-pc. It increases core size
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 18:53:25 +0000 (19:53 +0100)] 
Use decompressors framework on i386-pc. It increases core size
by 46 bytes but improves compatibility and maintainability.

* grub-core/Makefile.core.def (lzma_decompress): New image.
(kernel): Add i386_pc_ldflags.
* grub-core/kern/i386/pc/startup.S: Move intial part to ..
* grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
to real_to_prot, prot_to_real and device info.
* include/grub/offsets.h: Renamed decompressor offsets.
* util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
(image_target_desc): Remove raw_size and rename decompressor fields.
(compress_kernel): Handle lzma.
(generate_image): Handle decompressors on i386-pc.

13 years ago * configure.ac: Add -fno-asynchronous-unwind-tables.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 18:18:42 +0000 (19:18 +0100)] 
* configure.ac: Add -fno-asynchronous-unwind-tables.

13 years ago Move assembly code to C by using intwrap. It increases core size
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 15:29:04 +0000 (16:29 +0100)] 
Move assembly code to C by using intwrap. It increases core size
by 88 bytes but improves compatibility and maintainability.

* grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
* grub-core/term/i386/pc/console.c (grub_console_putchar_real):
... here. Translated to C.
* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
* grub-core/term/i386/pc/console.c (grub_console_getkey):
... here. Translated to C.
* grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
* grub-core/term/i386/pc/console.c (grub_console_getxy):
... here. Translated to C.
* grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
* grub-core/term/i386/pc/console.c (grub_console_gotoxy):
... here. Translated to C.
* grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
* grub-core/term/i386/pc/console.c (grub_console_cls):
... here. Translated to C.
* grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
* grub-core/term/i386/pc/console.c (grub_console_setcursor):
... here. Translated to C.
* grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
* grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
Translated to C.
* grub-core/term/i386/pc/console.c (int10_9): New function.
(grub_console_putchar): Likewise.
* include/grub/i386/pc/console.h: Removed the not anymore shared
functions.

13 years ago Move grub_chainloader_real_boot out of the kernel.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 14:46:50 +0000 (15:46 +0100)] 
Move grub_chainloader_real_boot out of the kernel.

* grub-core/Makefile.am: Remove machine/loader.h.
* grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
Removed.
* grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
variable.
(grub_relocator16_keep_a20_enabled): Likewise.
(grub_relocator16_boot): Fill new variables.
* grub-core/lib/i386/relocator16.S: Add gate a20 handling.
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
relocator.
(grub_chainloader_unload): Likewise.
(grub_chainloader_cmd): Likewise.
* include/grub/i386/pc/loader.h: Removed.
* include/grub/i386/relocator.h (grub_relocator16_state): Add a20
and esi. All initialisers updated.

13 years ago * Makefile.util.def (grub-mount): New util.
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 00:23:48 +0000 (01:23 +0100)] 
* Makefile.util.def (grub-mount): New util.
* .bzrignore: Add grub-mount.
* configure.ac: Check for fuse and enable grub-mount if available.
* docs/man/grub-mount.h2m: New file.
* util/grub-mount.c: Likewise.

13 years agofill attr on readdir
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 00:20:23 +0000 (01:20 +0100)] 
fill attr on readdir

13 years agogettextize
Vladimir 'phcoder' Serbinenko [Sat, 12 Nov 2011 00:19:06 +0000 (01:19 +0100)] 
gettextize

13 years agoAdd crypto support to grub-mount
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 23:56:20 +0000 (00:56 +0100)] 
Add crypto support to grub-mount

13 years agomerge mainline into fuse
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 23:42:18 +0000 (00:42 +0100)] 
merge mainline into fuse

13 years ago * grub-core/commands/efi/fixvideo.c: Gettextize.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 23:34:14 +0000 (00:34 +0100)] 
* grub-core/commands/efi/fixvideo.c: Gettextize.
* grub-core/commands/hashsum.c: Likewise.
* grub-core/commands/i386/cmostest.c: Likewise.
* grub-core/commands/i386/pc/drivemap.c: Likewise.
* grub-core/commands/i386/pc/lsapm.c: Likewise.
* grub-core/commands/i386/pc/sendkey.c: Likewise.
* grub-core/commands/lsmmap.c: Likewise.
* grub-core/commands/menuentry.c: Likewise.
* grub-core/commands/mips/loongson/lsspd.c: Likewise.
* grub-core/commands/setpci.c: Likewise.
* grub-core/loader/i386/bsd.c: Likewise.
* grub-core/loader/i386/linux.c: Likewise.
* util/getroot.c: Likewise.
* util/grub-editenv.c: Likewise.
* util/grub-fstest.c: Likewise.
* util/grub-mkfont.c: Likewise.
* util/grub-mkimage.c: Likewise.
* util/grub-mkpasswd-pbkdf2.c: Likewise.
* util/grub-pe2elf.c: Likewise.
* util/grub-probe.c: Likewise.
* util/grub-setup.c: Likewise.
* util/ieee1275/ofpath.c: Likewise.
* util/misc.c: Likewise.
* util/raid.c: Likewise.

13 years ago * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 23:26:04 +0000 (00:26 +0100)] 
* include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
forgotten define.
(GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
GRUB_IA64_DL_GOT_ALIGN.
(GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
GRUB_IA64_DL_TRAMP_ALIGN.

13 years ago2011-11-11 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 11 Nov 2011 21:58:18 +0000 (22:58 +0100)] 
2011-11-11  Robert Millan  <rmh@gnu.org>

        * util/getroot.c (grub_util_get_geom_abstraction): Remove
        __attribute__((unused)) from `os_dev', which *is* being used.

13 years ago Replace grub_fatal with normal errors in i386 linux loader.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 21:35:09 +0000 (22:35 +0100)] 
Replace grub_fatal with normal errors in i386 linux loader.

* grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
(allocate_pages): Check find_efi_mmap_size return value.
(grub_e820_add_region): Return error.
(grub_linux_boot): Check mmap return value.

13 years ago * grub-core/commands/acpihalt.c: Gettextized.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 20:44:56 +0000 (21:44 +0100)] 
* grub-core/commands/acpihalt.c: Gettextized.
* grub-core/commands/cacheinfo.c: Likewise.
* grub-core/commands/cmp.c: Likewise.
* grub-core/commands/efi/loadbios.c: Likewise.
* grub-core/commands/gptsync.c: Likewise.
* grub-core/commands/ieee1275/suspend.c: Likewise.
* grub-core/commands/legacycfg.c: Likewise.
* grub-core/commands/memrw.c: Likewise.
* grub-core/commands/minicmd.c: Likewise.
* grub-core/commands/parttool.c: Likewise.
* grub-core/commands/time.c: Likewise.
* grub-core/commands/videoinfo.c: Likewise.
* grub-core/disk/geli.c: Likewise.
* grub-core/disk/i386/pc/biosdisk.c: Likewise.
* grub-core/disk/luks.c: Likewise.
* grub-core/disk/lvm.c: Likewise.
* grub-core/font/font_cmd.c: Likewise.
* grub-core/fs/zfs/zfscrypt.c: Likewise.
* grub-core/fs/zfs/zfsinfo.c: Likewise.
* grub-core/gfxmenu/view.c: Likewise.
* grub-core/kern/emu/hostdisk.c: Likewise.
* grub-core/kern/emu/main.c: Likewise.
* grub-core/kern/emu/misc.c: Likewise.
* grub-core/kern/emu/mm.c: Likewise.
* grub-core/kern/mips/arc/init.c: Likewise.
* grub-core/kern/mips/loongson/init.c: Likewise.
* grub-core/kern/partition.c: Likewise.
* grub-core/lib/i386/halt.c: Likewise.
* grub-core/lib/mips/arc/reboot.c: Likewise.
* grub-core/lib/mips/loongson/reboot.c: Likewise.
* grub-core/loader/i386/pc/chainloader.c: Likewise.
* grub-core/loader/i386/xnu.c: Likewise.
* grub-core/loader/multiboot.c: Likewise.
* grub-core/net/bootp.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/normal/term.c: Likewise.
* grub-core/partmap/bsdlabel.c: Likewise.
* grub-core/parttool/msdospart.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
* grub-core/term/terminfo.c: Likewise.
* grub-core/video/i386/pc/vbe.c: Likewise.
* util/grub-menulst2cfg.c: Likewise.
* util/grub-mkdevicemap.c: Likewise.
* util/grub-mklayout.c: Likewise.
* util/grub-mkrelpath.c: Likewise.
* util/grub-script-check.c: Likewise.
* util/ieee1275/grub-ofpathname.c: Likewise.
* util/resolve.c: Likewise.

13 years agoForgotten ChangeLog entry
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 20:22:02 +0000 (21:22 +0100)] 
Forgotten ChangeLog entry

13 years ago Support %1$d syntax.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 20:14:41 +0000 (21:14 +0100)] 
Support %1$d syntax.

* tests/printf_unit_test.c: New file.
* Makefile.util.def (printf_test): New test.
* grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.

13 years ago * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 20:03:49 +0000 (21:03 +0100)] 
* grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
fix.

13 years ago * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 19:59:25 +0000 (20:59 +0100)] 
* grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
dprintf.
* grub-core/font/font.c (grub_font_load): Likewise.

13 years ago * util/grub-macho2img.c: Add comment concerning gettext.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 19:52:41 +0000 (20:52 +0100)] 
* util/grub-macho2img.c: Add comment concerning gettext.
* grub-core/lib/legacy_parse.c: Likewise.

13 years ago * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 19:45:31 +0000 (20:45 +0100)] 
* grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
(grub_xvasprintf): Likewise.

13 years ago Add const keyword to grub_env_get and gettextize week days.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 19:34:37 +0000 (20:34 +0100)] 
Add const keyword to grub_env_get and gettextize week days.

* grub-core/hook/datehook.c (grub_datetime_names): Make const.
(grub_read_hook_datetime): Return const char *.
* grub-core/kern/env.c (grub_env_get): Return const char *. All users
updated.
* grub-core/normal/datetime.c (grub_weekday_names): Make const.
Mark for gettext.
(grub_get_weekday_name): Return const char *. Call gettext.
* grub-core/script/argv.c (grub_script_argv_append): Receive const
char * and len as the argument. All users updated.
(grub_script_argv_split_append): Receive const char *.
* include/grub/datetime.h (grub_get_weekday_name): Update proto.
* include/grub/env.h (grub_env_get): Likewise.
(grub_env_read_hook_t): Return const char *.
* include/grub/script_sh.h (grub_script_argv_append): Update proto.
(grub_script_argv_split_append): Likewise.

13 years ago * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 19:09:14 +0000 (20:09 +0100)] 
* grub-core/normal/main.c (grub_normal_execute): Remove leftover call.

13 years ago * grub-core/kern/misc.c (grub_strstr): Moved from here ...
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 19:02:51 +0000 (20:02 +0100)] 
* grub-core/kern/misc.c (grub_strstr): Moved from here ...
* include/grub/misc.h (grub_strstr): ... here. Make static and inline.

13 years ago * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 17:32:06 +0000 (18:32 +0100)] 
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
Fix prototype.

13 years ago Fix mips compilation.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 17:30:34 +0000 (18:30 +0100)] 
Fix mips compilation.

* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
normal decoder.
(hashes): Use in embed decoder as well (for sizes).
(dec_stream_header): Fix embed decompressor logic.
(dec_stream_footer): Likewise.

13 years ago * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 17:05:16 +0000 (18:05 +0100)] 
* grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
an error and not a fatal on unrecognised relocation types.

13 years ago * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:44:47 +0000 (17:44 +0100)] 
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
Issue error rather than printf on unknown arguments.

13 years ago * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:34:38 +0000 (17:34 +0100)] 
* grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
Make buf a const.

13 years ago * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:21:33 +0000 (17:21 +0100)] 
* grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
Fix module name.

13 years ago * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:18:34 +0000 (17:18 +0100)] 
* grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
leftover debug printf.

13 years ago * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:13:23 +0000 (17:13 +0100)] 
* grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.

13 years ago * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:10:50 +0000 (17:10 +0100)] 
* grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
A stylistic fix.

13 years ago * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
Vladimir 'phcoder' Serbinenko [Fri, 11 Nov 2011 16:08:29 +0000 (17:08 +0100)] 
* grub-core/commands/probe.c (grub_cmd_probe): Fix error message.

13 years ago Allow all modules to perform serial IO
Shea Levy [Thu, 10 Nov 2011 08:41:07 +0000 (09:41 +0100)] 
Allow all modules to perform serial IO

* grub-core/term-serial.c (grub_serial_find): Remove static qualifier
* include/grub/serial.h (grub_serial_port_configure): New inline
function.
(grub_serial_port_fetch): Likewise.
(grub_serial_port_put): Likewise.
(grub_serial_port_fini): Likewise.
(grub_serial_find): New proto.

13 years ago Put symlink at the end of the node and fix a potential
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 08:31:06 +0000 (09:31 +0100)] 
Put symlink at the end of the node and fix a potential
memory corruption.

* grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
Make symlink into an array.
(set_rockridge): Set have_symlink and alloc_dirents.
(grub_iso9660_read_symlink): Use new layout.
(grub_iso9660_iterate_dir): Fix memory corruption.
Use new layout.
(grub_iso9660_dir): Set have_symlink.
(grub_iso9660_open): Likewise.

13 years ago Remove local keyword.
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 07:46:09 +0000 (08:46 +0100)] 
Remove local keyword.

* util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
(version_test_gt): Likewise.
(version_find_latest): Likewise.
(gettext_printf): Likewise.
* util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.

13 years ago * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 07:43:08 +0000 (08:43 +0100)] 
* grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.

13 years ago Fix ZFS memory and resource leaks.
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 07:38:06 +0000 (08:38 +0100)] 
Fix ZFS memory and resource leaks.

* grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
All users updated.
Free type on exit.
(fill_vdev_info): New parameter inserted. All users updated.
(check_pool_label): Likewise.
(scan_disk): Likewise.
(scan_devices): Close non-inserted disks.
(fzap_iterate): Free l.
(unmount_device): Free children descripto memory.

13 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 07:16:27 +0000 (08:16 +0100)] 
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
argument (access out of bounds).

13 years ago * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 07:09:33 +0000 (08:09 +0100)] 
* grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
>= 6 drives.

13 years ago * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
Vladimir 'phcoder' Serbinenko [Thu, 10 Nov 2011 07:07:51 +0000 (08:07 +0100)] 
* include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
Fix declaration.

13 years ago Fix several memory leaks.
Vladimir 'phcoder' Serbinenko [Wed, 9 Nov 2011 14:01:58 +0000 (15:01 +0100)] 
Fix several memory leaks.

* grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
* grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
(grub_cpio_dir): Likewise.
* grub-core/fs/fat.c (grub_fat_label): Likewise.
* grub-core/fs/jfs.c (grub_jfs_label): Likewise.
* grub-core/fs/romfs.c (grub_romfs_close): Likewise.
(grub_romfs_label): Likewise.
* grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
(squash_unmount): New function.
(grub_squash_dir): Fix memory leak.
(grub_squash_open): Likewise.
(grub_squash_read): Likewise.
(grub_squash_mtime): Likewise.
* grub-core/fs/xfs.c (grub_xfs_open): Likewise.
* grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
* util/grub-fstest.c (fstest): Likewise.

13 years ago * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
Vladimir 'phcoder' Serbinenko [Wed, 9 Nov 2011 13:47:45 +0000 (14:47 +0100)] 
* include/grub/misc.h (grub_strncat): Fix the order of conditionals to
avoid accessing beyond the array.

13 years ago * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
Vladimir 'phcoder' Serbinenko [Wed, 9 Nov 2011 13:44:21 +0000 (14:44 +0100)] 
* configure.ac: Add missing -mXX to TARGET_CPPFLAGS.

13 years ago Several AFFS fixes.
Vladimir 'phcoder' Serbinenko [Wed, 9 Nov 2011 10:43:39 +0000 (11:43 +0100)] 
Several AFFS fixes.

* grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
(GRUB_AFFS_FLAG_FFS): Removed.
(GRUB_AFFS_SYMLINK_SIZE): Likewise.
(GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
(GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
(grub_fshelp_node): Make block 32-bit.
Add block_cache and last_block_cache.
(grub_affs_read_block): Fill and use block cache.
(grub_affs_read_file): Removed.
(grub_affs_mount): Zero-fill node. Fix version check. Don't reread
boot block.
(grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
safety.
(grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
space.
(grub_affs_close): Free block cache.
(grub_affs_read): Use grub_fshelp_read_file directly.

13 years ago * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 19:03:06 +0000 (20:03 +0100)] 
* grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
with no error set.

13 years ago * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 18:46:41 +0000 (19:46 +0100)] 
* grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
used variable.
* grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
Likewise.

13 years ago Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 18:44:18 +0000 (19:44 +0100)] 
Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.

* grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
byteswap when needed.

13 years ago Fix FreeBSD compilation.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 18:34:19 +0000 (19:34 +0100)] 
Fix FreeBSD compilation.

* grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
to avoid circular dependency.
(GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
* util/getroot.c (grub_util_follow_gpart_up): Move from here...
* grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.

13 years agoMerge mainline into fuse
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 15:34:35 +0000 (16:34 +0100)] 
Merge mainline into fuse

13 years ago Fix ZFS crypto error types.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 15:07:27 +0000 (16:07 +0100)] 
Fix ZFS crypto error types.

* grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
(grub_gcm_decrypt): Likewise.
(grub_zfs_load_key_real): Fix error code type. Handle possible error
from PBKDF2.

13 years ago Illumos support.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 11:38:30 +0000 (12:38 +0100)] 
Illumos support.

* Makefile.util.def (10_illumos): New script.
* configure.ac: Set COND_HOST_ILLUMOS.
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
Support Illumos calls.
(find_partition_start) [__sun__]: Likewise.
(convert_system_partition_to_system_disk) [__sun__]: Likewise.
(device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
(grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
* util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
device.
* util/grub-probe.c (probe) [__sun__]: Do character check.
* util/grub.d/10_illumos.in: New file.

13 years ago Support escaped commas in hostdisk.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 11:15:57 +0000 (12:15 +0100)] 
Support escaped commas in hostdisk.

* grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
(find_grub_drive): Use unescape_cmp.
(make_device_name): Escape commas.

13 years ago * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 11:06:27 +0000 (12:06 +0100)] 
* util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.

13 years ago * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 10:32:19 +0000 (11:32 +0100)] 
* grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
variable.

13 years ago Support trampoline jumps on powerpc.
Vladimir 'phcoder' Serbinenko [Tue, 8 Nov 2011 10:23:56 +0000 (11:23 +0100)] 
Support trampoline jumps on powerpc.

* grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
__ia64__ path.
(grub_dl_load_segments): Set mod->sz.
(grub_dl_flush_cache): Flush whole space occupied by module, not just
segments.
* grub-core/kern/ia64/dl.c (nopm): Make const while on it.
(jump): Likewise.
* grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
function.
(trampoline): New struct.
(trampoline_template): New const.
(grub_arch_dl_relocate_symbols): Create trampolines on overflow.
* include/grub/dl.h (grub_dl): Add sz element.
[__powerpc__]: Follow __ia64__.
(GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
(GRUB_ARCH_DL_GOT_ALIGN): Likewise.
(GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
(grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.

13 years ago ZFS crypto support.
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 20:44:48 +0000 (21:44 +0100)] 
ZFS crypto support.

* Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
* grub-core/Makefile.core.def (zfscrypt): New module.
* grub-core/fs/zfs/zfs.c (subvolume): New structure.
(grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
it. All users updated.
(grub_zfs_decrypt): New var.
(grub_zfs_load_key): Likewise.
(zio_checksum_functions): Add SHA256+MAC.
(zio_checksum_verify): Handle incomplete comparison due to MAC.
(zio_read): Handle encrypted blocks.
(zap_verify): Remove incorrect check.
(fzap_iterate): Handle non-standard fzap.
(zap_iterate): Likewise.
(zap_iterate_u64): New function.
(dnode_get_fullpath): Load keys.
* grub-core/fs/zfs/zfscrypt.c: New file.
* grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
(grub_crypto_ecb_encrypt): Make input const.
* include/grub/crypto.h (grub_crypto_cipher_close): Inline.
(grub_crypto_ecb_encrypt): Make input const.
(GRUB_CIPHER_AES): New macro.
* include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
* include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
* include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
* include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
prefix. All users updated.
(grub_zfs_add_key): New proto.
(grub_zfs_decrypt): Likewise.
(grub_zfs_load_key): Likewise.
* include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
* util/grub-fstest.c (options): Add -K option.
(argp_parser): Likewise.

13 years agoSmall cleanup
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 20:08:32 +0000 (21:08 +0100)] 
Small cleanup