]> git.proxmox.com Git - grub2.git/log
grub2.git
12 years agoRevert last commit based on lack of consensus and possible unsmooth migration path
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 23:06:21 +0000 (01:06 +0200)]
Revert last commit based on lack of consensus and possible unsmooth migration path

12 years ago * util/grub.d/00_header.in: Make timeout apply to else
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:41:57 +0000 (00:41 +0200)]
* util/grub.d/00_header.in: Make timeout apply to else
clause of hidden timout.
Reported by: Mads Kiilerich.

12 years ago * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:36:23 +0000 (00:36 +0200)]
* grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
btrfs.

12 years ago * docs/grub.cfg: Update.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:30:15 +0000 (00:30 +0200)]
* docs/grub.cfg: Update.

12 years ago * docs/grub.texi (PXE): Remove not present variables.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:28:53 +0000 (00:28 +0200)]
* docs/grub.texi (PXE): Remove not present variables.

12 years ago * grub-core/net/net.c (defserver_set_env): New function.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:26:53 +0000 (00:26 +0200)]
* grub-core/net/net.c (defserver_set_env): New function.
(defserver_get_env): Likewise.
(GRUB_MOD_INIT): Register net_default_server and pxe_default_server.

12 years ago * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:07:55 +0000 (00:07 +0200)]
* grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
entries.

12 years agoCorrect author of last commit
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 22:03:40 +0000 (00:03 +0200)]
Correct author of last commit

12 years ago * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 21:43:59 +0000 (23:43 +0200)]
* grub-core/commands/menuentry.c: Add TRANSLATORS comments.
* grub-core/kern/emu/hostdisk.c: Likewise.

12 years ago Handle hurd userspace partitions.
Samuel Thibault [Thu, 3 May 2012 21:41:46 +0000 (23:41 +0200)]
Handle hurd userspace partitions.

* util/getroot.c (find_hurd_root_device): New function.
(grub_guess_root_devices): Use find_hurd_root_device on Hurd.

12 years ago * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 20:59:16 +0000 (22:59 +0200)]
* util/getroot.c (convert_system_partition_to_system_disk); Add etherd
names.
Reported by: Bastian Blank.

12 years ago * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 20:16:45 +0000 (22:16 +0200)]
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
crossing page boundary.

12 years ago Fix B-tree search in BFS, especially in presence of non-ASCII
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 18:29:10 +0000 (20:29 +0200)]
Fix B-tree search in BFS, especially in presence of non-ASCII
characters.

* grub-core/fs/bfs.c (bfs_strcmp): New function.
(find_in_b_tree): Use standard bsearch + btree algorithm.

12 years ago * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 18:20:28 +0000 (20:20 +0200)]
* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
and so on.

12 years ago Suspend broadcom cards in order to stop their DMA.
Matthew Garrett [Thu, 3 May 2012 15:26:55 +0000 (17:26 +0200)]
Suspend broadcom cards in order to stop their DMA.

* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
* grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
(pci): Don't build on x86 EFI.
* grub-core/bus/pci.c (grub_pci_find_capability): New function.
* grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
New function.
(grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
stop_broadcom if running on EFI.
* include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
(GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
(GRUB_PCI_VENDOR_BROADCOM): Likewise.
(grub_pci_find_capability): New proto.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago * docs/grub.texi: Remove dot from the extension as it apparently
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 15:16:35 +0000 (17:16 +0200)]
* docs/grub.texi: Remove dot from the extension as it apparently
doesn't work with some makeinfo versions.

12 years ago * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 15:02:37 +0000 (17:02 +0200)]
* po/Makefile.in.in: Make msgfmt output in little-endian in accordance
with GRUB expectance.

12 years ago * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 14:45:40 +0000 (16:45 +0200)]
* util/grub-fstest.c (cmd_cmp): Compare directories recursively.

12 years ago * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 14:43:05 +0000 (16:43 +0200)]
* grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
zero after directory block since last entry may be not 0-terminated if
it ends on block boundary. Use continue instead of if spanning whole
loop.

12 years ago Support 4K sectors UDF inline files.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 07:29:20 +0000 (09:29 +0200)]
Support 4K sectors UDF inline files.

* grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
(grub_udf_extended_file_entry): Likewise.
(grub_fshelp_node): Name the anonymous union. Put block at the end.
All users updated.
(get_fshelp_size): New function.
(grub_udf_read_icb): Read whole block.
(grub_udf_iterate_dir): Likewise.
(grub_udf_dir): Likewise.
(grub_udf_open): Likewise.

12 years ago * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 07:25:25 +0000 (09:25 +0200)]
* grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.

12 years ago * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 07:21:09 +0000 (09:21 +0200)]
* grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
inline symlinks in addition to workaround.

12 years ago * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 07:15:29 +0000 (09:15 +0200)]
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.

12 years ago * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 07:11:32 +0000 (09:11 +0200)]
* grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.

12 years ago * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
Vladimir 'phcoder' Serbinenko [Thu, 3 May 2012 07:09:30 +0000 (09:09 +0200)]
* grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.

12 years ago Fix reiserfs big seek times.
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 08:30:52 +0000 (10:30 +0200)]
Fix reiserfs big seek times.

* grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
exact. All users updated.
(grub_reiserfs_read): Use nearest btree search for seeking.
Fix return value on error.

12 years ago * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 08:26:09 +0000 (10:26 +0200)]
* grub-core/commands/legacycfg.c (legacy_file): Default to restricted
entries.
* grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
* docs/grub.texi: Update menuentry description.

12 years ago * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 08:09:01 +0000 (10:09 +0200)]
* util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
crash when embedding onto filesystem.

12 years ago * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
Vladimir 'phcoder' Serbinenko [Wed, 2 May 2012 07:56:56 +0000 (09:56 +0200)]
* util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
name.

12 years ago * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:29:44 +0000 (15:29 +0200)]
* grub-core/net/ip.c (handle_dgram): Fix undeclared variable.

12 years ago * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:26:36 +0000 (15:26 +0200)]
* grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
commit.

12 years ago * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
Bean [Tue, 1 May 2012 13:20:20 +0000 (15:20 +0200)]
* grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:08:29 +0000 (15:08 +0200)]
* grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
Special behaviour for len = 0 to read whole file isn't used anywhere and
can cause buffer ovewrflows in several places.

12 years ago * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:06:34 +0000 (15:06 +0200)]
* grub-core/normal/autofs.c (read_fs_list): Fix memory leak.

12 years ago Handle RAIDZ on non-512B sectors.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:05:26 +0000 (15:05 +0200)]
Handle RAIDZ on non-512B sectors.

* grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
max_children_ashift.
(fill_vdev_info_real): Fill max_children_ashift.
(read_device): Use max_children_ashift.

12 years ago * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:03:27 +0000 (15:03 +0200)]
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.

12 years ago * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 13:02:34 +0000 (15:02 +0200)]
* grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
disk names.
* docs/grub.texi: Update device.map parts.

12 years ago Don't scan into non-diskfilter devices having diskfilter names.
Vladimir 'phcoder' Serbinenko [Tue, 1 May 2012 12:59:30 +0000 (14:59 +0200)]
Don't scan into non-diskfilter devices having diskfilter names.

* grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
(scan_disk): New argument accept_diskfilter. Fix recursion depth
handling.
(scan_disk_hook): New function.

12 years ago * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
Bean [Sun, 29 Apr 2012 16:43:22 +0000 (18:43 +0200)]
* grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
allocation.

12 years ago * configure.ac: Detect starfield theme font path
Mads Kiilerich [Sun, 29 Apr 2012 16:15:24 +0000 (18:15 +0200)]
* configure.ac: Detect starfield theme font path
/usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.

12 years ago * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 18:51:06 +0000 (20:51 +0200)]
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
geometry on serial consoles.

12 years ago * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 16:57:22 +0000 (18:57 +0200)]
* grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
because of network consoles.

12 years ago * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 16:55:39 +0000 (18:55 +0200)]
* grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
handling.

12 years ago * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 10:51:03 +0000 (12:51 +0200)]
* grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
falls on Q syndrom.

12 years ago * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
Vladimir 'phcoder' Serbinenko [Thu, 26 Apr 2012 10:49:35 +0000 (12:49 +0200)]
* grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
Fix argument to grub_nilfs2_palloc_bitmap_block_offset.

12 years ago * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
Vladimir 'phcoder' Serbinenko [Wed, 25 Apr 2012 23:16:25 +0000 (01:16 +0200)]
* grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
Allocate at lest 8192 for temporary buffer as required for lzo.

12 years ago * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
Vladimir 'phcoder' Serbinenko [Wed, 25 Apr 2012 14:28:06 +0000 (16:28 +0200)]
* grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
to cluster_bits, since it's already added in.
(grub_fat_read_data): Likewise.

12 years ago * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
Vladimir 'phcoder' Serbinenko [Wed, 25 Apr 2012 09:56:24 +0000 (11:56 +0200)]
* grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
as long as cluster size is multiple of 512 bytes.

12 years ago * util/grub-mkrescue.in: Fix locale directory.
Vladimir 'phcoder' Serbinenko [Mon, 23 Apr 2012 15:17:50 +0000 (17:17 +0200)]
* util/grub-mkrescue.in: Fix locale directory.

12 years ago * grub-core/kern/emu/hostdisk.c (map): Make static.
Vladimir 'phcoder' Serbinenko [Mon, 23 Apr 2012 15:14:48 +0000 (17:14 +0200)]
* grub-core/kern/emu/hostdisk.c (map): Make static.

12 years ago * util/grub-fstest.c (fstest): Add missing break.
Bean [Mon, 23 Apr 2012 15:11:49 +0000 (17:11 +0200)]
* util/grub-fstest.c (fstest): Add missing break.

12 years agoFix hurd build.
root [Sun, 22 Apr 2012 19:02:55 +0000 (19:02 +0000)]
Fix hurd build.

* util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
find_root_devices_from_poolname, find_root_devices_from_libzfs,
grub_find_device): Do not define.

12 years agoFix hurd build.
Samuel Thibault [Sun, 22 Apr 2012 16:44:19 +0000 (18:44 +0200)]
Fix hurd build.

* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
not define nr variable.

12 years ago Fix kfreebsd compile and behaviour.
Vladimir 'phcoder' Serbinenko [Sat, 21 Apr 2012 14:49:56 +0000 (16:49 +0200)]
Fix kfreebsd compile and behaviour.

* grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
format-security.
* util/getroot.c: Fix wait.h include.
(grub_guess_root_devices): Error if grub_find_device fails.
(grub_util_get_geom_abstraction): Fix shadowing and format-security.
(grub_util_get_dev_abstraction): Likewise.
(grub_util_pull_device): Likewise.
(grub_util_get_grub_dev): Likewise.
* util/lvm.c (grub_util_lvm_isvolume): Likewise.

12 years ago Fix and unify wholedisk detection.
Vladimir 'phcoder' Serbinenko [Sat, 21 Apr 2012 14:42:28 +0000 (16:42 +0200)]
Fix and unify wholedisk detection.

* util/getroot.c (convert_system_partition_to_system_disk): New argument
is_part. All users updated.
(device_is_wholedisk): Removed.
(grub_util_biosdisk_get_grub_dev): Use is_part.

12 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
Vladimir 'phcoder' Serbinenko [Thu, 19 Apr 2012 18:35:06 +0000 (20:35 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
mode.

12 years ago * configure.ac: Bump to beta4.
Vladimir 'phcoder' Serbinenko [Thu, 19 Apr 2012 09:34:43 +0000 (11:34 +0200)]
* configure.ac: Bump to beta4.

12 years ago * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
Vladimir 'phcoder' Serbinenko [Thu, 19 Apr 2012 09:32:59 +0000 (11:32 +0200)]
* grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
--fs-uuid --set UUID syntax.

12 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:48:52 +0000 (23:48 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
disunification.

12 years ago * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:37:25 +0000 (23:37 +0200)]
* conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.

12 years ago * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
Mads Kiilerich [Wed, 18 Apr 2012 21:31:26 +0000 (23:31 +0200)]
     * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.

12 years ago * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
Mike Gilbert [Wed, 18 Apr 2012 21:25:21 +0000 (23:25 +0200)]
* util/grub.d/10_linux.in: Fix detection of genkernel initramfs.

12 years ago * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
Bean [Wed, 18 Apr 2012 21:21:38 +0000 (23:21 +0200)]
* grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
place.

12 years ago * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:18:51 +0000 (23:18 +0200)]
* grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
users updated.
(grub_util_biosdisk_read): Handle Linux partitions not exactly
corresponding to GRUB partitions.
(grub_util_biosdisk_write): Likewise.

12 years ago Scan mdraid before LVM.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:11:33 +0000 (23:11 +0200)]
Scan mdraid before LVM.

* include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
(grub_diskfilter_register_front): ... this.
(grub_diskfilter_register_back): New function.
All users of grub_diskfilter_register updated.

12 years ago * util/grub-install.in: Fix an automatic target detection bug.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 21:01:51 +0000 (23:01 +0200)]
* util/grub-install.in: Fix an automatic target detection bug.

12 years ago * util/grub-install.in: New option --efi-directory.
Vladimir 'phcoder' Serbinenko [Wed, 18 Apr 2012 20:43:55 +0000 (22:43 +0200)]
* util/grub-install.in: New option --efi-directory.

12 years ago * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
Vladimir 'phcoder' Serbinenko [Tue, 17 Apr 2012 11:00:06 +0000 (13:00 +0200)]
* grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
boot services if we have no other choice.

12 years ago * util/grub-mknetdir.in: Rename --override-directory to --directory and
Vladimir 'phcoder' Serbinenko [Sat, 14 Apr 2012 13:20:45 +0000 (15:20 +0200)]
* util/grub-mknetdir.in: Rename --override-directory to --directory and
document it.
* tests/util/grub-shell.in: Update to --directory.

12 years ago * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 17:26:36 +0000 (19:26 +0200)]
* grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.

12 years ago * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 15:08:38 +0000 (17:08 +0200)]
* grub-core/fs/minix.c (grub_minix_data): Fix ino type.
(grub_minix_read_file): Likewise.
(grub_minix_read_inode): Likewise.
(grub_minix_find_file): Likewise.
(grub_minix_dir): Likewise.

12 years ago * util/grub-setup.c (setup): Fix partition handling and blocklist
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 14:58:02 +0000 (16:58 +0200)]
* util/grub-setup.c (setup): Fix partition handling and blocklist
check.

12 years ago * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
Vladimir 'phcoder' Serbinenko [Fri, 13 Apr 2012 14:55:20 +0000 (16:55 +0200)]
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
redundant buggy overlap check.

12 years ago * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
Vladimir 'phcoder' Serbinenko [Wed, 11 Apr 2012 20:43:15 +0000 (22:43 +0200)]
* tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
and grub-mknetdir.

12 years ago * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
Vladimir 'phcoder' Serbinenko [Wed, 11 Apr 2012 20:40:20 +0000 (22:40 +0200)]
* grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
kh.loadflags on pre-2.00 kernels.

12 years ago Terminate UNDI and PXE before launching the payload to avoid problems
Vladimir 'phcoder' Serbinenko [Wed, 11 Apr 2012 20:32:31 +0000 (22:32 +0200)]
Terminate UNDI and PXE before launching the payload to avoid problems
with DMA.

* grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
(grub_loader_flags): ... this. All users updated.
(grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
* grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
* grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
function.
(grub_pxe_restore): Likewise.
(fini_hnd): New var.
(GRUB_MOD_INIT): Register shutdown hook.
(GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
* include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
(GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
(grub_loader_set): Rename second argument to flags.

12 years ago * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 18:11:04 +0000 (20:11 +0200)]
* grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
written bytes.
(grub_get_num_of_utf8_bytes): New function.
(grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
* grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
executing it.
* include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
(grub_ucs4_to_utf8): Change return type.

12 years ago * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 18:03:38 +0000 (20:03 +0200)]
* grub-core/commands/usbtest.c (usb_print_str): Silence spurious
warning.

12 years ago * grub-core/lib/adler32.c: Recode due to license unclearness.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:58:39 +0000 (19:58 +0200)]
* grub-core/lib/adler32.c: Recode due to license unclearness.

12 years ago * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:54:51 +0000 (19:54 +0200)]
* grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
(test_header): Likewise.

12 years ago Fix --help formatting.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:49:25 +0000 (19:49 +0200)]
Fix --help formatting.

* util/grub-mkconfig_lib.in (print_option_help): New function.
(grub_fmt): Likewise.
* util/grub-install.in: Use print_option_help and grub_fmt.
* util/grub-kbdcomp.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

12 years ago * linguas.sh: Remove autogenerated *.po.
Vladimir 'phcoder' Serbinenko [Sat, 7 Apr 2012 17:44:50 +0000 (19:44 +0200)]
* linguas.sh: Remove autogenerated *.po.

12 years ago * po/README: Move language fetcing to ...
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:55:56 +0000 (14:55 +0200)]
* po/README: Move language fetcing to ...
* linguas.sh: ... here.
* po/README: Point to linguas.sh.

12 years ago * po/README: Exclude ko.po due to disclaimer problems.
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:43:27 +0000 (14:43 +0200)]
* po/README: Exclude ko.po due to disclaimer problems.

12 years ago * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:41:55 +0000 (14:41 +0200)]
* grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
len = 0.
(grub_gettext_translate_real): Handle 0th string.
(grub_gettext_translate): Ensure that "" isn't translated.

12 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:33:38 +0000 (14:33 +0200)]
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
TRANSLATORS comment.
(grub_diskfilter_print_partmap): Propagate changing of error into
warning.

12 years ago * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
Vladimir 'phcoder' Serbinenko [Wed, 4 Apr 2012 12:31:22 +0000 (14:31 +0200)]
* include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
to uint64_t to prevent overflow.
(grub_diskfilter_lv): Increase start_extent and extent_count
to uint64_t to prevent overflow.

12 years ago * configure.ac: Increase version.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:54:45 +0000 (21:54 +0200)]
* configure.ac: Increase version.

12 years ago Introduce en@cyrillic en@hebrew en@arabic and en@greek.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:53:46 +0000 (21:53 +0200)]
Introduce en@cyrillic en@hebrew en@arabic and en@greek.

* po/Rules-translit: New file.
* po/arabic.sed: Likewise.
* po/cyrillic.sed: Likewise.
* po/greek.sed: Likewise.
* po/hebrew.sed: Likewise.
* po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
* po/Makefile.in.in: Add extra_dist4.

12 years ago Handle big-endian minixfs (fixes minixfs tests on bigendian).
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:35:18 +0000 (21:35 +0200)]
Handle big-endian minixfs (fixes minixfs tests on bigendian).

* grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
modify names. Introduce MODE_BIGENDIAN.
* grub-core/fs/minix_be.c: New file.
* grub-core/fs/minix2_be.c: Likewise
* grub-core/fs/minix3_be.c: Likewise.
* Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
minix3_be.
* grub-core/Makefile.core.def (minix_be): New module.
(minix2_be): Likewise.
(minix3_be): Likewise.

12 years ago * grub-core/loader/efi/appleloader.c (devpath_7): New var.
Felix [Sun, 1 Apr 2012 19:30:24 +0000 (21:30 +0200)]
* grub-core/loader/efi/appleloader.c (devpath_7): New var.
(devs): Add MBP 2011.

12 years ago * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:27:17 +0000 (21:27 +0200)]
* grub-core/font/font.c (blit_comb): Handle dagesh somewhat.

12 years ago * grub-core/normal/cmdline.c (print_completion): New field
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:25:17 +0000 (21:25 +0200)]
* grub-core/normal/cmdline.c (print_completion): New field
prompt_len.
(grub_cmdline_get): Handle width properly.

12 years ago * grub-core/commands/lsacpi.c (options): Add missing terminator.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:22:48 +0000 (21:22 +0200)]
* grub-core/commands/lsacpi.c (options): Add missing terminator.

12 years ago * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 19:04:56 +0000 (21:04 +0200)]
* include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
after 29th of February.

12 years ago Fix exfat endianness handling.
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 17:04:13 +0000 (19:04 +0200)]
Fix exfat endianness handling.

* grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
(grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
(grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
Byte-swap utf16 when necessary.
(grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.

12 years ago Fix btrfs endianness handling.
Anton Blanchard [Sat, 31 Mar 2012 16:45:13 +0000 (18:45 +0200)]
Fix btrfs endianness handling.

* grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
(lower_bound): Make root uint64_t. Use root in le.
(grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
(find_path): Fix template key init.
(grub_btrfs_dir): Fix mtime byteswap.
* include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 16:38:29 +0000 (18:38 +0200)]
* grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
recursion_depth. Break infinite resursions. All users updated.

12 years ago * util/getroot.c (convert_system_partition_to_system_disk): Fix use
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 10:27:10 +0000 (12:27 +0200)]
* util/getroot.c (convert_system_partition_to_system_disk): Fix use
after free.
Reported by: Peter Jones.

12 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
Anton Blanchard [Sat, 31 Mar 2012 10:08:50 +0000 (12:08 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8 bit values.