]> git.proxmox.com Git - grub2.git/log
grub2.git
12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

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

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

12 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

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

12 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.

12 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.

12 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.

12 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.

12 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.

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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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).

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

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

12 years agoGCM support
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 20:05:25 +0000 (21:05 +0100)]
GCM support

12 years agoSupport ZFS subvolumes with multiple keys
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 16:13:38 +0000 (17:13 +0100)]
Support ZFS subvolumes with multiple keys

12 years agoZFS passphrase support
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 15:30:52 +0000 (16:30 +0100)]
ZFS passphrase support

12 years agoMove ZFS crypto to separate module
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 14:18:25 +0000 (15:18 +0100)]
Move ZFS crypto to separate module

12 years agoZFS crypto key adding
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 13:44:29 +0000 (14:44 +0100)]
ZFS crypto key adding

12 years agoFirst part of zfs-crypto. CCM support with 0-filled keys
Vladimir 'phcoder' Serbinenko [Sun, 6 Nov 2011 12:18:27 +0000 (13:18 +0100)]
First part of zfs-crypto. CCM support with 0-filled keys

12 years ago Support zle compression on ZFS.
Vladimir 'phcoder' Serbinenko [Sat, 5 Nov 2011 13:50:53 +0000 (14:50 +0100)]
Support zle compression on ZFS.

* grub-core/fs/zfs/zfs.c (zle_decompress): New function.
(decomp_table): Add zle.
* include/grub/zfs/zio.h (zio_compress): Add zle.

12 years ago Support BtrFS embedding.
Vladimir 'phcoder' Serbinenko [Sat, 5 Nov 2011 13:47:25 +0000 (14:47 +0100)]
Support BtrFS embedding.

* grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
(grub_btrfs_fs) [GRUB_UTIL]: Set embed.
* include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
* util/grub-setup.c (setup): Use fs embedding if available.
Add additional sanity check.

12 years ago * util/grub-install.in: Fix condition for config_opt.
Vladimir 'phcoder' Serbinenko [Sat, 5 Nov 2011 11:15:07 +0000 (12:15 +0100)]
* util/grub-install.in: Fix condition for config_opt.

12 years ago Support third redundancy strip on raidz3.
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 14:19:23 +0000 (15:19 +0100)]
Support third redundancy strip on raidz3.

* grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
Return error on singularity. All users updated.
(read_device): Don't stop on 3rd failure on raidz3.

12 years ago Support case-insensitive ZFS subvolumes.
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 12:44:56 +0000 (13:44 +0100)]
Support case-insensitive ZFS subvolumes.

* grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
All users updated.
(zap_hash): Likewise.
(name_cmp): New function.
(zap_leaf_array_equal): New parameter case_insensitive.
All users updated.
(zap_leaf_lookup): Likewise.
(fzap_lookup): Likewise.
(zap_lookup): Likewise.
(dnode_get_path): New parameter case_insensitive. Retrieve case
sensitiviness of a volume. All users updated.
(dnode_get_fullpath): New parameter case_insensitive.
All users updated.
(grub_zfs_dir): Set info.case_insensitiveness.

12 years ago Support second redundancy strip on raidz(2,3).
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 12:36:08 +0000 (13:36 +0100)]
Support second redundancy strip on raidz(2,3).

* grub-core/fs/zfs/zfs.c (powx): New array.
(powx_inv): Likewise.
(poly): New const.
(xor_out): New function.
(gf_mul): Likewise.
(recovery): Likewise.
(read_device): Use second redundancy strip.

12 years ago Use a power of generator representation of GF(256) multiplication group
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 12:27:50 +0000 (13:27 +0100)]
Use a power of generator representation of GF(256) multiplication group
to save space time and complexity.

* grub-core/disk/raid6_recover.c (raid6_table1): Removed.
(raid6_table2): Likewise.
(powx): New array.
(powx_inv): Likewise.
(poly): New const.
(grub_raid_block_mul): Replace with ...
(grub_raid_block_mulx): ...this.
(grub_raid6_init_table): Rewritten.
(grub_raid6_recover): Use power of generator representation.

12 years ago * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 12:22:38 +0000 (13:22 +0100)]
* grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
for the right device.

12 years ago * include/grub/kernel.h (grub_module_header): Make type into uint32 as
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 12:18:30 +0000 (13:18 +0100)]
* include/grub/kernel.h (grub_module_header): Make type into uint32 as
expected by grub-mkimage and it's more clear since there is no implicit
padding.

12 years ago * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
Vladimir 'phcoder' Serbinenko [Fri, 4 Nov 2011 12:15:29 +0000 (13:15 +0100)]
* grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
disk.
* grub-core/disk/lvm.c (do_lvm_scan): Likewise.

12 years ago * util/grub-mkrescue.in: Fix handling xorriso option.
Philipp Matthias Hahn [Thu, 3 Nov 2011 15:49:02 +0000 (16:49 +0100)]
* util/grub-mkrescue.in: Fix handling xorriso option.

12 years ago * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
Vladimir 'phcoder' Serbinenko [Thu, 3 Nov 2011 15:04:26 +0000 (16:04 +0100)]
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
NULL.

12 years ago * util/grub.d/10_linux.in: Add Slackware initrd naming.
crocket [Thu, 3 Nov 2011 14:21:47 +0000 (15:21 +0100)]
* util/grub.d/10_linux.in: Add Slackware initrd naming.

12 years ago XZ CRC64 and SHA256 support.
Vladimir 'phcoder' Serbinenko [Thu, 3 Nov 2011 14:13:30 +0000 (15:13 +0100)]
XZ CRC64 and SHA256 support.

* Makefile.util.def (libgrubmods): Add crc64.c.
* grub-core/Makefile.core.def (crc64): New module.
* grub-core/lib/crc64.c: New file.
* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
[!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
Fix the type.
(MAX_HASH_SIZE): New define.
(xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
(dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
(index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
(dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
(crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
(hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
Handle non-crc32 hashes.
(hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
(dec_stream_header): Handle non-crc32 hashes.
(dec_stream_footer): Likewise.
(dec_block_header): Likewise.
(dec_main): Likewise.
(xz_dec_init): Likewise.
(xz_dec_reset): Likewise.
(xz_dec_end): Likewise.
* util/import_gcry.py: Add CRC64 line.

12 years ago * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
Vladimir 'phcoder' Serbinenko [Thu, 3 Nov 2011 14:00:45 +0000 (15:00 +0100)]
* grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
as well.

12 years ago Make reiserfs label retrieval similar to other *_label functions.
Vladimir 'phcoder' Serbinenko [Thu, 3 Nov 2011 13:57:34 +0000 (14:57 +0100)]
Make reiserfs label retrieval similar to other *_label functions.

* grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
(REISERFS_MAX_LABEL_LENGTH): Removed.
(REISERFS_LABEL_OFFSET): Likewise.
(grub_reiserfs_label): Rewritten.

12 years ago * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
Vladimir 'phcoder' Serbinenko [Thu, 3 Nov 2011 13:52:59 +0000 (14:52 +0100)]
* grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
field.

12 years ago * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
Vladimir 'phcoder' Serbinenko [Thu, 3 Nov 2011 06:29:35 +0000 (07:29 +0100)]
* grub-core/fs/zfs/zfs.c (read_device): Support raidz3.

12 years ago * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
Vladimir 'phcoder' Serbinenko [Wed, 2 Nov 2011 22:28:25 +0000 (23:28 +0100)]
* grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
drive failure on both raidz and raidz2.

12 years ago Fix RAIDZ(2) for >= 5 devices.
Vladimir 'phcoder' Serbinenko [Wed, 2 Nov 2011 19:48:04 +0000 (20:48 +0100)]
Fix RAIDZ(2) for >= 5 devices.

* grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
asize argument. All users updated.

12 years ago Fix RAIDZ(2).
Vladimir 'phcoder' Serbinenko [Tue, 1 Nov 2011 19:05:28 +0000 (20:05 +0100)]
Fix RAIDZ(2).

* grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
(fill_vdev_info_real): Set ashift.
(read_device): Rewrite RAIDZ part based on reverse engineering.

12 years ago * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
Vladimir 'phcoder' Serbinenko [Mon, 31 Oct 2011 12:56:52 +0000 (13:56 +0100)]
* grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
don't report potentially unavialiable fields in debug output.
(find_path): Fix double-free and memory leak.

12 years ago Read label on UFS1.
Vladimir 'phcoder' Serbinenko [Mon, 31 Oct 2011 09:52:39 +0000 (10:52 +0100)]
Read label on UFS1.

* grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
(grub_ufs_fs): Always set .label.

12 years ago Use shifts in UFS.
Vladimir 'phcoder' Serbinenko [Mon, 31 Oct 2011 09:50:43 +0000 (10:50 +0100)]
Use shifts in UFS.

* grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
(grub_ufs_data): New field log2_blksz.
(grub_ufs_read_file): Use shifts.
(grub_ufs_mount): Check block size and logarithm it.

12 years ago * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
Vladimir 'phcoder' Serbinenko [Mon, 31 Oct 2011 09:40:30 +0000 (10:40 +0100)]
* grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
long symlinks.

12 years ago Handle symlinks and long names on tar and cpio.
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 22:06:25 +0000 (23:06 +0100)]
Handle symlinks and long names on tar and cpio.

* grub-core/fs/cpio.c (ATTR_TYPE): New definition.
(ATTR_FILE): Likewise.
(ATTR_DIR): Likewise.
(ATTR_LNK): Likewise.
(grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
(grub_cpio_find_file): Fill mode, handle linkname field as well as
L and K entries.
(grub_cpio_mount): Zero-fill data.
(handle_symlink): New function.

12 years ago Fix iso9660 filename limitations and fix memory leaks.
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 19:23:05 +0000 (20:23 +0100)]
Fix iso9660 filename limitations and fix memory leaks.

* grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
(grub_iso9660_iterate_dir): Fix slash handling in symlinks.

12 years ago Fix JFS file name length limitations.
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 19:14:57 +0000 (20:14 +0100)]
Fix JFS file name length limitations.

* grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
(grub_jfs_diropen): Fix maximum filename length.
(grub_jfs_getent): Fix filename length.
(grub_jfs_lookup_symlink): Fix size checks.

12 years ago * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 18:30:04 +0000 (19:30 +0100)]
* grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
string.

12 years ago Leverage BFS implementation to read AFS.
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 15:10:18 +0000 (16:10 +0100)]
Leverage BFS implementation to read AFS.

* Makefile.util.def (libgrubmods): Add afs.c.
* grub-core/Makefile.core.def (afs): New module
* grub-core/fs/afs.c: New file.
* grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.

12 years agoFix a mistake in previous commit
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 13:25:53 +0000 (14:25 +0100)]
Fix a mistake in previous commit

12 years ago * grub-core/fs/bfs.c: MAcroify and add some necessary sanity checks.
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 13:17:44 +0000 (14:17 +0100)]
* grub-core/fs/bfs.c: MAcroify and add some necessary sanity checks.

12 years ago * grub-core/fs/bfs.c: Run indent.
Vladimir 'phcoder' Serbinenko [Sun, 30 Oct 2011 12:27:53 +0000 (13:27 +0100)]
* grub-core/fs/bfs.c: Run indent.