Vladimir 'phcoder' Serbinenko
607d282b29
Fix long symlinks on reiserfs.
...
* grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
(grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
(grub_reiserfs_iterate_dir): Save size for non-directories.
(grub_reiserfs_open): Don't reread stat block as we already know the
size.
(grub_reiserfs_read): Split into...
(grub_reiserfs_read_real): ... and ...
(grub_reiserfs_read): ...this.
2012-05-09 12:55:43 +02:00
Vladimir 'phcoder' Serbinenko
ae16024d92
Fix non-indexed JFS.
...
* grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
(grub_jfs_data): New field namecomponentlen.
(grub_jfs_mount): Fill namecomponentlen.
(grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2012-05-09 02:12:16 +02:00
Vladimir 'phcoder' Serbinenko
eea1e26e52
* grub-core/script/yylex.l: Ugly fix for "\\\n ".
...
* tests/grub_script_echo1.in: Add tests.
2012-05-08 23:20:02 +02:00
Vladimir 'phcoder' Serbinenko
df760f778a
* util/grub-install.in: Ignore empty devicetree directory.
2012-05-08 23:11:47 +02:00
Bean
5efb817d64
* grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
...
All users updated.
(free_rsm): Free header as well.
(free_old_fragments): Fix memory leak.
* grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
* grub-core/net/tftp.c (tftp_receive): Fix memory leak.
(destroy_pq): Likewise.
* include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2012-05-08 16:03:02 +02:00
Vladimir 'phcoder' Serbinenko
668ea6d26d
* grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
...
resulting hash as a precaution.
2012-05-08 14:22:38 +02:00
Vladimir 'phcoder' Serbinenko
1739b1fef8
* grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
...
'_' in variable names.
* grub-core/net/net.c (grub_net_network_level_interface_register):
Likewise.
2012-05-08 14:07:49 +02:00
Vladimir 'phcoder' Serbinenko
6ae485aaef
Fix AFFS with non-512B blocks.
...
* grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
(AFFS_MAX_LOG_BLOCK_SIZE): New definition.
(grub_affs_data): Replace blocksize with log_blocksize.
(grub_affs_read_block): Fix non-512B blocks.
(grub_affs_read_symlink): Likewise.
(grub_affs_iterate_dir): Likewise. Fix freeing corruption.
(grub_affs_read): Fix non-512B blocks.
(grub_affs_label): Likewise.
(grub_affs_mtime): Likewise.
(grub_affs_mount): Fix block detection routine.
2012-05-08 04:38:19 +02:00
Vladimir 'phcoder' Serbinenko
d20fab8471
Add filesystem mtime to AFFS.
...
* grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
(aftime2ctime): New function.
(grub_affs_dir): Use aftime2ctime.
(grub_affs_label): Fix return value.
(grub_affs_mtime): New function.
(grub_affs_fs): Add mtime.
2012-05-08 01:51:34 +02:00
Vladimir 'phcoder' Serbinenko
e87b10f5d6
* grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
...
UTF-8.
2012-05-07 22:00:19 +02:00
Vladimir 'phcoder' Serbinenko
7dceec9b69
* grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
...
UTF-8.
2012-05-07 21:57:51 +02:00
Vladimir 'phcoder' Serbinenko
2f48221f5c
* grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2012-05-07 19:09:02 +02:00
Vladimir 'phcoder' Serbinenko
dacd85cfb0
* grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
...
flags.
(FLAGS_CASE_SENSITIVE): New enum value.
(cache_entry): New struct.
(grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
cache_size and cache.
(grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
Add log_blocksize and fshelp_flags.
(grub_sfs_read_extent): Handle non-512 blocks.
(grub_sfs_read_block): Add cаche and handle non-512 blocks.
(grub_sfs_read_file): Handle non-512 blocks.
(grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
fshelp_flags.
(grub_sfs_read_symlink): Handle non-512 blocks.
(grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
(grub_sfs_dir): Free cache.
(grub_sfs_close): Likewise.
2012-05-07 19:07:16 +02:00
Vladimir 'phcoder' Serbinenko
24e9a854b8
* grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
...
filesystems.
2012-05-06 16:20:55 +02:00
Vladimir 'phcoder' Serbinenko
62ace64dd9
* grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2012-05-06 16:18:00 +02:00
Vladimir 'phcoder' Serbinenko
83b2e89cf7
* grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2012-05-06 16:10:29 +02:00
Vladimir 'phcoder' Serbinenko
75ccaea346
* grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
...
(grub_sfs_read_extent): Likewise.
(grub_sfs_read_block): Likewise.
(grub_sfs_mount): Likewise.
(grub_sfs_iterate_dir): Likewise.
(grub_sfs_read_symlink): Use strncpy instead of strcpy.
(grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2012-05-06 04:42:28 +02:00
Vladimir 'phcoder' Serbinenko
1b8463f2c4
Fix errors on compressed NTFS with 512B clusters.
...
* include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
types.
* grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
not 0.
* grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
Relax check for inline extents.
(ntfscomp): Return correct -1 on error and not 0.
2012-05-04 17:37:17 +02:00
Vladimir 'phcoder' Serbinenko
4f8e368fc0
* util/grub-install.in: Fix handling of prefix containing spaces.
2012-05-04 17:18:35 +02:00
Vladimir 'phcoder' Serbinenko
6f5d5ee865
* grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
...
(grub_squash_read_data): Fix offset byte-swapping.
2012-05-04 17:13:24 +02:00
Vladimir 'phcoder' Serbinenko
ce41ab7aab
* grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
...
per common usage and preffered in several parts of code.
(grub_memcmp): Likewise.
(grub_strncmp): Likewise.
* include/grub/misc.h (grub_strcasecmp): Likewise.
(grub_strncasecmp): Likewise.
* Makefile.util.def (cmp_test): New test.
(grub_script_strcmp): Likewise.
* tests/cmp_unit_test.c: New file.
* tests/grub_script_strcmp.in: Likewise.
* grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2012-05-04 12:08:22 +02:00
Vladimir 'phcoder' Serbinenko
49717bf429
* include/grub/pci.h: Move enums into no-asm part.
2012-05-04 10:54:38 +02:00
Vladimir 'phcoder' Serbinenko
0a308f64e9
* grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2012-05-04 10:52:26 +02:00
Samuel Thibault
1796965f6c
* util/getroot.c (find_hurd_root_device): Try to make error message
...
and comments to translators clearer.
2012-05-04 02:26:39 +02:00
Vladimir 'phcoder' Serbinenko
4e9b28192a
* grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments
2012-05-04 01:20:38 +02:00
Vladimir 'phcoder' Serbinenko
48d57ed779
Revert last commit based on lack of consensus and possible unsmooth migration path
2012-05-04 01:06:21 +02:00
Vladimir 'phcoder' Serbinenko
e0ca063a66
* util/grub.d/00_header.in: Make timeout apply to else
...
clause of hidden timout.
Reported by: Mads Kiilerich.
2012-05-04 00:41:57 +02:00
Vladimir 'phcoder' Serbinenko
076aeb5022
* grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
...
btrfs.
2012-05-04 00:36:23 +02:00
Vladimir 'phcoder' Serbinenko
19424d942b
* docs/grub.cfg: Update.
2012-05-04 00:30:15 +02:00
Vladimir 'phcoder' Serbinenko
ebb7307695
* docs/grub.texi (PXE): Remove not present variables.
2012-05-04 00:28:53 +02:00
Vladimir 'phcoder' Serbinenko
9a1b669c37
* 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.
2012-05-04 00:26:53 +02:00
Vladimir 'phcoder' Serbinenko
d38bf7d3dc
Correct author of last commit
2012-05-04 00:03:40 +02:00
Vladimir 'phcoder' Serbinenko
11858300e9
* grub-core/commands/menuentry.c: Add TRANSLATORS comments.
...
* grub-core/kern/emu/hostdisk.c: Likewise.
2012-05-03 23:43:59 +02:00
Samuel Thibault
e5e4ca486c
Handle hurd userspace partitions.
...
* util/getroot.c (find_hurd_root_device): New function.
(grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2012-05-03 23:41:46 +02:00
Vladimir 'phcoder' Serbinenko
56bb5dd518
* util/getroot.c (convert_system_partition_to_system_disk); Add etherd
...
names.
Reported by: Bastian Blank.
2012-05-03 22:59:16 +02:00
Vladimir 'phcoder' Serbinenko
9e8bc27a40
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
...
crossing page boundary.
2012-05-03 22:16:45 +02:00
Vladimir 'phcoder' Serbinenko
aa01499d05
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.
2012-05-03 20:29:10 +02:00
Vladimir 'phcoder' Serbinenko
5700603549
* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
...
and so on.
2012-05-03 20:20:28 +02:00
Matthew Garrett
9d34bb85da
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>
2012-05-03 17:26:55 +02:00
Vladimir 'phcoder' Serbinenko
01aab9978f
* docs/grub.texi: Remove dot from the extension as it apparently
...
doesn't work with some makeinfo versions.
2012-05-03 17:16:35 +02:00
Vladimir 'phcoder' Serbinenko
fbd8dca681
* po/Makefile.in.in: Make msgfmt output in little-endian in accordance
...
with GRUB expectance.
2012-05-03 17:02:37 +02:00
Vladimir 'phcoder' Serbinenko
dab797f476
* util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2012-05-03 16:45:40 +02:00
Vladimir 'phcoder' Serbinenko
1516bfb43a
* 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.
2012-05-03 16:43:05 +02:00
Vladimir 'phcoder' Serbinenko
a3a0eace51
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.
2012-05-03 09:29:20 +02:00
Vladimir 'phcoder' Serbinenko
c82f16c1be
* grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2012-05-03 09:25:25 +02:00
Vladimir 'phcoder' Serbinenko
59fd2aacd0
* grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
...
inline symlinks in addition to workaround.
2012-05-03 09:21:09 +02:00
Vladimir 'phcoder' Serbinenko
3b4afb4de1
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2012-05-03 09:15:29 +02:00
Vladimir 'phcoder' Serbinenko
f45c794ab5
* grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2012-05-03 09:11:32 +02:00
Vladimir 'phcoder' Serbinenko
f25cecbdb3
* grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2012-05-03 09:09:30 +02:00
Vladimir 'phcoder' Serbinenko
bb9a34e88d
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.
2012-05-02 10:30:52 +02:00
Vladimir 'phcoder' Serbinenko
dc478aeae5
* 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.
2012-05-02 10:26:09 +02:00
Vladimir 'phcoder' Serbinenko
8db10f47fe
* util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
...
crash when embedding onto filesystem.
2012-05-02 10:09:01 +02:00
Vladimir 'phcoder' Serbinenko
bcb288ed17
* util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
...
name.
2012-05-02 09:56:56 +02:00
Vladimir 'phcoder' Serbinenko
a626fdd76a
* grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2012-05-01 15:29:44 +02:00
Vladimir 'phcoder' Serbinenko
b2f6847735
* grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
...
commit.
2012-05-01 15:26:36 +02:00
Bean
ba15b2afa0
* grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
...
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
2012-05-01 15:20:20 +02:00
Vladimir 'phcoder' Serbinenko
a188012e6c
* 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.
2012-05-01 15:08:29 +02:00
Vladimir 'phcoder' Serbinenko
f0a53ed2c2
* grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2012-05-01 15:06:34 +02:00
Vladimir 'phcoder' Serbinenko
5ed554f014
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.
2012-05-01 15:05:26 +02:00
Vladimir 'phcoder' Serbinenko
ddc583571e
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2012-05-01 15:03:27 +02:00
Vladimir 'phcoder' Serbinenko
e3282399ad
* grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
...
disk names.
* docs/grub.texi: Update device.map parts.
2012-05-01 15:02:34 +02:00
Vladimir 'phcoder' Serbinenko
ee618bd491
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.
2012-05-01 14:59:30 +02:00
Bean
bdf8886428
* grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
...
allocation.
2012-04-29 18:43:22 +02:00
Mads Kiilerich
32745f5131
* configure.ac: Detect starfield theme font path
...
/usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2012-04-29 18:15:24 +02:00
Vladimir 'phcoder' Serbinenko
bc95c8c0e1
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
...
geometry on serial consoles.
2012-04-26 20:51:06 +02:00
Vladimir 'phcoder' Serbinenko
147fbcab72
* grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
...
because of network consoles.
2012-04-26 18:57:22 +02:00
Vladimir 'phcoder' Serbinenko
0f42c8898f
* grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
...
handling.
2012-04-26 18:55:39 +02:00
Vladimir 'phcoder' Serbinenko
4a3594c9b1
* grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
...
falls on Q syndrom.
2012-04-26 12:51:03 +02:00
Vladimir 'phcoder' Serbinenko
5cb5387977
* grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
...
Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2012-04-26 12:49:35 +02:00
Vladimir 'phcoder' Serbinenko
b282dfe5ac
* grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
...
Allocate at lest 8192 for temporary buffer as required for lzo.
2012-04-26 01:16:25 +02:00
Vladimir 'phcoder' Serbinenko
daa59f47f6
* 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.
2012-04-25 16:28:06 +02:00
Vladimir 'phcoder' Serbinenko
986748ce79
* grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
...
as long as cluster size is multiple of 512 bytes.
2012-04-25 11:56:24 +02:00
Vladimir 'phcoder' Serbinenko
a20f6ad048
* util/grub-mkrescue.in: Fix locale directory.
2012-04-23 17:17:50 +02:00
Vladimir 'phcoder' Serbinenko
385f9abbe3
* grub-core/kern/emu/hostdisk.c (map): Make static.
2012-04-23 17:14:48 +02:00
Bean
1c557d30ef
* util/grub-fstest.c (fstest): Add missing break.
2012-04-23 17:11:49 +02:00
root
fe4824e998
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.
2012-04-22 19:02:55 +00:00
Samuel Thibault
524b5d3a7c
Fix hurd build.
...
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
not define nr variable.
2012-04-22 18:44:19 +02:00
Vladimir 'phcoder' Serbinenko
9a06490c07
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.
2012-04-21 16:49:56 +02:00
Vladimir 'phcoder' Serbinenko
48143d96a6
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.
2012-04-21 16:42:28 +02:00
Vladimir 'phcoder' Serbinenko
ebbd24f3eb
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
...
mode.
2012-04-19 20:35:06 +02:00
Vladimir 'phcoder' Serbinenko
56f7aa1e6f
* configure.ac: Bump to beta4.
2012-04-19 11:34:43 +02:00
Vladimir 'phcoder' Serbinenko
9c815e0120
* grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
...
--fs-uuid --set UUID syntax.
2012-04-19 11:32:59 +02:00
Vladimir 'phcoder' Serbinenko
59e2651a06
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
...
disunification.
2012-04-18 23:48:52 +02:00
Vladimir 'phcoder' Serbinenko
54e03cfcf0
* conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
2012-04-18 23:37:25 +02:00
Mads Kiilerich
81092a75e5
* grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
2012-04-18 23:31:26 +02:00
Mike Gilbert
f8315e145d
* util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
2012-04-18 23:25:21 +02:00
Bean
1501ac21b0
* grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
...
place.
2012-04-18 23:21:38 +02:00
Vladimir 'phcoder' Serbinenko
cb7f944e44
* 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.
2012-04-18 23:18:51 +02:00
Vladimir 'phcoder' Serbinenko
b72d44a11a
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.
2012-04-18 23:11:33 +02:00
Vladimir 'phcoder' Serbinenko
33d918b85f
* util/grub-install.in: Fix an automatic target detection bug.
2012-04-18 23:01:51 +02:00
Vladimir 'phcoder' Serbinenko
c6ca973d4b
* util/grub-install.in: New option --efi-directory.
2012-04-18 22:43:55 +02:00
Vladimir 'phcoder' Serbinenko
b41be5623a
* grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
...
boot services if we have no other choice.
2012-04-17 13:00:06 +02:00
Vladimir 'phcoder' Serbinenko
e0595a73b2
* grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
2012-04-13 19:26:36 +02:00
Vladimir 'phcoder' Serbinenko
4ed80652d2
* 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.
2012-04-13 17:08:38 +02:00
Vladimir 'phcoder' Serbinenko
5600807745
* util/grub-setup.c (setup): Fix partition handling and blocklist
...
check.
2012-04-13 16:58:02 +02:00
Vladimir 'phcoder' Serbinenko
ee5207750f
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
...
redundant buggy overlap check.
2012-04-13 16:55:20 +02:00
Vladimir 'phcoder' Serbinenko
16fc9293d6
* tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
...
and grub-mknetdir.
2012-04-11 22:43:15 +02:00
Vladimir 'phcoder' Serbinenko
9bab65c49d
* grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
...
kh.loadflags on pre-2.00 kernels.
2012-04-11 22:40:20 +02:00
Vladimir 'phcoder' Serbinenko
3c491b479c
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.
2012-04-11 22:32:31 +02:00
Vladimir 'phcoder' Serbinenko
851ffadac2
* 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.
2012-04-07 20:11:04 +02:00
Vladimir 'phcoder' Serbinenko
491c57a815
* grub-core/commands/usbtest.c (usb_print_str): Silence spurious
...
warning.
2012-04-07 20:03:38 +02:00
Vladimir 'phcoder' Serbinenko
756773df7c
* grub-core/lib/adler32.c: Recode due to license unclearness.
2012-04-07 19:58:39 +02:00
Vladimir 'phcoder' Serbinenko
fd556a962e
* grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
...
(test_header): Likewise.
2012-04-07 19:54:51 +02:00
Vladimir 'phcoder' Serbinenko
9f9d3f69f4
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.
2012-04-07 19:49:25 +02:00
Vladimir 'phcoder' Serbinenko
561ec77e2d
* linguas.sh: Remove autogenerated *.po.
2012-04-07 19:44:50 +02:00
Vladimir 'phcoder' Serbinenko
7ec2b02171
* po/README: Move language fetcing to ...
...
* linguas.sh: ... here.
* po/README: Point to linguas.sh.
2012-04-04 14:55:56 +02:00
Vladimir 'phcoder' Serbinenko
a88f327093
* po/README: Exclude ko.po due to disclaimer problems.
2012-04-04 14:43:27 +02:00
Vladimir 'phcoder' Serbinenko
d61357cec2
* 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.
2012-04-04 14:41:55 +02:00
Vladimir 'phcoder' Serbinenko
505e41dc36
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
...
TRANSLATORS comment.
(grub_diskfilter_print_partmap): Propagate changing of error into
warning.
2012-04-04 14:33:38 +02:00
Vladimir 'phcoder' Serbinenko
e44092dbb9
* 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.
2012-04-04 14:31:22 +02:00
Vladimir 'phcoder' Serbinenko
9b83956ab9
* configure.ac: Increase version.
2012-04-01 21:54:45 +02:00
Vladimir 'phcoder' Serbinenko
da0d5b3f3b
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.
2012-04-01 21:53:46 +02:00
Vladimir 'phcoder' Serbinenko
ac66b453df
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.
2012-04-01 21:35:18 +02:00
Vladimir 'phcoder' Serbinenko
0a2d5a8275
* grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
2012-04-01 21:27:17 +02:00
Vladimir 'phcoder' Serbinenko
d162588970
* grub-core/normal/cmdline.c (print_completion): New field
...
prompt_len.
(grub_cmdline_get): Handle width properly.
2012-04-01 21:25:17 +02:00
Vladimir 'phcoder' Serbinenko
6d36a236d2
* grub-core/commands/lsacpi.c (options): Add missing terminator.
2012-04-01 21:22:48 +02:00
Vladimir 'phcoder' Serbinenko
9576977eab
* include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
...
after 29th of February.
2012-03-31 21:04:56 +02:00
Vladimir 'phcoder' Serbinenko
d73ff15de4
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.
2012-03-31 19:04:13 +02:00
Anton Blanchard
bbb39a458b
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>
2012-03-31 18:45:13 +02:00
Vladimir 'phcoder' Serbinenko
354e0af7d3
* grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
...
recursion_depth. Break infinite resursions. All users updated.
2012-03-31 18:38:29 +02:00
Vladimir 'phcoder' Serbinenko
4e75f21c33
* util/getroot.c (convert_system_partition_to_system_disk): Fix use
...
after free.
Reported by: Peter Jones.
2012-03-31 12:27:10 +02:00
Anton Blanchard
255818026e
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
...
8 bit values.
2012-03-31 12:08:50 +02:00
Vladimir 'phcoder' Serbinenko
08fbf92ecb
* util/grub-install.in: Fix nvram call for PreP.
2012-03-28 17:58:21 +02:00
Vladimir 'phcoder' Serbinenko
5d1182a66b
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
...
the error when some elements are missing into a warning.
2012-03-28 17:56:45 +02:00
Vladimir 'phcoder' Serbinenko
3f8cdd9052
* grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
2012-03-28 17:54:54 +02:00
Colin Watson
5100671655
* docs/grub.texi (Invoking grub-probe): New section.
...
Reported by: Filipus Klutiero. Fixes Debian bug #666031 .
2012-03-28 00:37:00 +01:00
Vladimir 'phcoder' Serbinenko
e1bd676b4e
Fix tab and wide character handling in editor and menu.
...
* grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
agglomerate control characters with combining marks.
(bidi_line_wrap): Allow break on tab.
(grub_unicode_get_comb_start): New function.
* grub-core/normal/menu_entry.c: Restructure to handle wide characters
and tab correctly.
* grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
with a space.
* grub-core/normal/term.c (print_ucs4_terminal): New argument
fixed_tab_size. All users updated.
* include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
(grub_term_getcharwidth): Handle \t.
* include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
and copy.
2012-03-27 17:07:26 +02:00
Vladimir 'phcoder' Serbinenko
22e6a774f9
Handle big-endian mdraid.
...
* Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
* grub-core/Makefile.core.def (mdraid09_be): New module.
* grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
rather than grub_le_to_cpu* and grub_cpu_to_le*.
* grub-core/disk/mdraid_linux_be.c: New file.
2012-03-26 16:10:40 +02:00
Vladimir 'phcoder' Serbinenko
3c0eae66fa
* grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
2012-03-26 16:07:42 +02:00
Vladimir 'phcoder' Serbinenko
b6cf74c901
* util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
...
missing quotes which caused confusion among translators.
2012-03-19 16:30:16 +01:00
Vladimir 'phcoder' Serbinenko
83c93b9cf5
* util/grub-mkconfig_lib.in: Fix typo.
2012-03-19 16:27:59 +01:00
Vladimir 'phcoder' Serbinenko
ac6fd21803
* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
...
spaces.
* tests/grub_script_leading_whitespace.in: New file.
* Makefile.util.def (grub_script_leading_whitespace): New test.
2012-03-19 13:29:43 +01:00
Vladimir 'phcoder' Serbinenko
ba287dd8e0
* grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
...
to work.
2012-03-19 11:10:11 +01:00
Vladimir 'phcoder' Serbinenko
d2d58d0ab4
* grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
...
starts with control character.
2012-03-19 11:07:28 +01:00
Vladimir 'phcoder' Serbinenko
0382d9bb22
* grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
...
overflow.
(grub_gdb_outbuf): Likewise.
2012-03-19 10:59:16 +01:00
Vladimir 'phcoder' Serbinenko
d83ff9f955
* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
...
zero terminator. Fixes a crash.
2012-03-19 10:56:43 +01:00
Vladimir 'phcoder' Serbinenko
2282da4a93
* grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
...
beyond 4 GiB.
(grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
images independently of preffered adderss field.
2012-03-11 23:41:29 +01:00
Vladimir 'phcoder' Serbinenko
0ae4f0bddb
* grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
...
* grub-core/commands/regexp.c: Likewise.
* grub-core/loader/i386/linux.c: Likewise.
* grub-core/partmap/msdos.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
2012-03-11 23:36:35 +01:00
Vladimir 'phcoder' Serbinenko
546fbe9b5a
Add variable parsing in $"..." and fix several mismatches with bash.
...
* Makefile.util.def (grub_script_gettext): New test.
* grub-core/script/execute.c (parse_string): New function.
(gettext_append): Likewise.
(grub_script_arglist_to_argv): Use gettext_append.
* grub-core/script/yylex.l: Fix slash and newline handling in $"...".
* tests/grub_script_gettext.in: New file.
2012-03-11 14:46:48 +01:00
Vladimir 'phcoder' Serbinenko
9fdb2d7b11
Fix handling of leading spaces in scripts.
...
* grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
spaces.
* grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
other than skipping \r. All users updated.
* tests/grub_script_echo1.in: Add space-related tests.
* util/grub-menulst2cfg.c (main): Remove useless space skipping.
2012-03-11 14:43:18 +01:00
Vladimir 'phcoder' Serbinenko
1a1ac4f6cb
* grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
2012-03-11 14:36:02 +01:00
Vladimir 'phcoder' Serbinenko
b63d89b684
* configure.ac: Bump up the version to beta2.
2012-03-10 23:52:47 +01:00
Vladimir 'phcoder' Serbinenko
17f38c0f8c
Fix gettext reload bugs (e.g. inability to disable gettext
...
once enabled).
* grub-core/gettext/gettext.c: Encapsulate all static variables in
main_context and secondary_context. All functions updated.
(grub_gettext_translate): Rename to ...
(grub_gettext_translate_real): ... this. Return NULL on failed
translate.
(grub_gettext_translate): Handle secondary context.
(grub_gettext_delete_list): Close file and zero-out the context.
(grub_mofile_open): Don't call grub_gettext_delete_list.
Don't close file.
(grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
if locale="" to avoid pointless error message.
(grub_gettext_env_write_lang): Update lang even if load fails.
Handle secondary context.
(grub_gettext_reread_prefix): New function.
(read_main): Likewise.
(read_secondary): Likewise.
(GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
(GRUB_MOD_FINI): Handle secondary context. Don't close file.
* grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
* include/grub/normal.h (grub_gettext_reread_prefix): New proto.
2012-03-10 23:25:34 +01:00
Vladimir 'phcoder' Serbinenko
8e56f87007
* configure.ac: Decrease warning level to avoid spurious warnings and
...
to be able to compile with GCC 4.2.
* Makefile.util.def: Remove -Wno-error=logical-op.
2012-03-10 21:30:37 +01:00
William Bittner
82f6d455bb
* util/import_unicode.py: Add missing brackets around string for
...
python 3 support.
2012-03-10 20:47:12 +01:00
Vladimir 'phcoder' Serbinenko
1ecd61a47a
Fix efi chainloader on network root.
...
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
network devices.
* grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
New function.
2012-03-10 20:41:28 +01:00
Vladimir 'phcoder' Serbinenko
14361ee8aa
* grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
...
unused show_text member.
* docs/grub.texi: Document "text" property.
2012-03-10 19:46:46 +01:00
Vladimir 'phcoder' Serbinenko
922aabf34b
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
...
in dprintf.
2012-03-10 18:02:53 +01:00
Vladimir 'phcoder' Serbinenko
ec31677170
Fix IMSM handling on Fedora.
...
* util/getroot.c (grub_util_is_imsm): New function.
(grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
2012-03-10 18:01:01 +01:00
Vladimir 'phcoder' Serbinenko
0f021838c4
* Makefile.am: Strip gold section.
...
* conf/Makefile.common: Likewise.
* gentpl.py: Likewise.
* grub-core/Makefile.core.def: Likewise.
* grub-core/genmod.sh.in: Likewise.
2012-03-10 16:55:48 +01:00