]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
15 years agoadded a testcase
BVK Chaitanya [Wed, 4 Aug 2010 13:51:18 +0000 (19:21 +0530)] 
added a testcase

15 years agoregexp can take variable names to update with matches
BVK Chaitanya [Wed, 4 Aug 2010 05:38:26 +0000 (11:08 +0530)] 
regexp can take variable names to update with matches

15 years agopulled in menuentry branch for OPTION_REPEATABLE
BVK Chaitanya [Wed, 4 Aug 2010 04:54:57 +0000 (10:24 +0530)] 
pulled in menuentry branch for OPTION_REPEATABLE

15 years agoregexp sets matches to $match*
BVK Chaitanya [Tue, 3 Aug 2010 11:03:36 +0000 (16:33 +0530)] 
regexp sets matches to $match*

15 years ago * script/execute.c (grub_script_execute_cmdline): Check for NULL
BVK Chaitanya [Tue, 3 Aug 2010 06:26:36 +0000 (11:56 +0530)] 
* script/execute.c (grub_script_execute_cmdline): Check for NULL
as command name case.

15 years ago* disk/raid.c (insert_array): Select unique numbers for named arrays
Colin Watson [Mon, 2 Aug 2010 14:51:23 +0000 (09:51 -0500)] 
* disk/raid.c (insert_array): Select unique numbers for named arrays
as well, for use as keys in the disk cache.

15 years ago2010-08-01 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 1 Aug 2010 21:21:09 +0000 (23:21 +0200)] 
2010-08-01  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
kFreeBSD device name, except on ZFS where the filesystem label is
used.
(kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
`/boot/zfs/zpool.cache'.
Set mountfrom kernel variable using ${kfreebsd_device}.

15 years ago2010-08-01 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 1 Aug 2010 21:12:24 +0000 (23:12 +0200)] 
2010-08-01  Robert Millan  <rmh@gnu.org>

Make it even harder to use uninitialized `libzfs_handle' (and
make the interface a bit simpler).

* include/grub/util/misc.h (grub_util_init_libzfs)
(libzfs_handle): Remove.
(grub_get_libzfs_handle): New prototype.

* util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
attribute.
(grub_util_init_libzfs): Remove.
(grub_get_libzfs_handle): New function.

* kern/emu/getroot.c (find_root_device_from_libzfs): Use
grub_get_libzfs_handle() to obtain a libzfs handle instead of
accessing `libzfs_handle' directly.

15 years ago2010-08-01 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 1 Aug 2010 20:59:02 +0000 (22:59 +0200)] 
2010-08-01  Robert Millan  <rmh@gnu.org>

* include/grub/emu/misc.h (grub_find_mount_point_from_dir)
(grub_find_zpool_from_mount_point): New function prototypes.

* kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
* kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.

* kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
* kern/emu/misc.c (grub_find_mount_point_from_dir): ... this.  Remove
`static' attribute.

* kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
finding zpool from mount point into ...
* kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.

* kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
requested path is part of a ZFS pool, use
grub_find_zpool_from_mount_point() to detect its filesystem name,
and generate a path with `/fsname@path' syntax.

15 years ago* include/grub/util/libzfs.h (libzfs_init): Set argument list to
Colin Watson [Sun, 1 Aug 2010 21:41:46 +0000 (16:41 -0500)] 
* include/grub/util/libzfs.h (libzfs_init): Set argument list to
(void) rather than () so that this is a proper prototype.

15 years ago * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
Vladimir 'phcoder' Serbinenko [Sun, 1 Aug 2010 19:01:05 +0000 (21:01 +0200)] 
* lib/arg.c (grub_arg_show_help): Add the necessary spacing.

15 years ago * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
Vladimir 'phcoder' Serbinenko [Sun, 1 Aug 2010 14:11:27 +0000 (16:11 +0200)] 
* kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
[HAVE_LIBZFS && HAVE_LIBNVPAIR]

15 years ago* util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
Colin Watson [Sun, 1 Aug 2010 16:30:03 +0000 (11:30 -0500)] 
* util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.

15 years ago* script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
Colin Watson [Sun, 1 Aug 2010 16:28:12 +0000 (11:28 -0500)] 
* script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].

15 years ago* docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
Colin Watson [Sun, 1 Aug 2010 16:25:09 +0000 (11:25 -0500)] 
* docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
and GRUB_CMDLINE_XEN_DEFAULT.  Recommend setting
GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
disable gfxpayload.
(Shell-like scripting): Add real content.
(Serial terminal): Suggest `terminal_input serial; terminal_output
serial' rather than putting the two commands on separate lines,
since console input will be inoperative after the first command.
(menuentry): Document --class, --users, and --hotkey options.
(terminfo): Describe what `visually-ordered UTF-8' means (thanks,
Vladimir Serbinenko).

15 years ago* kern/misc.c (grub_memset): Optimise to reduce cache stalls.
Vladimir Serbinenko [Sun, 1 Aug 2010 14:44:36 +0000 (09:44 -0500)] 
* kern/misc.c (grub_memset): Optimise to reduce cache stalls.
Also-By: Colin Watson <cjwatson@ubuntu.com>
15 years ago2010-08-01 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 1 Aug 2010 13:23:44 +0000 (15:23 +0200)] 
2010-08-01  Robert Millan  <rmh@gnu.org>

Prevent accidental use of uninitialized libzfs_handle.

* util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
* kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
* util/misc.c (grub_util_init_libzfs): Make this function idempotent.

15 years ago* util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
Colin Watson [Sun, 1 Aug 2010 13:54:10 +0000 (08:54 -0500)] 
* util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
util/grub.d/10_linux.in).  Fixes Debian bug #591093.

15 years ago2010-08-01 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 1 Aug 2010 12:47:14 +0000 (14:47 +0200)] 
2010-08-01  Robert Millan  <rmh@gnu.org>

* kern/emu/getroot.c: Include `<grub/util/misc.h>'.

15 years ago2010-07-31 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 1 Aug 2010 00:14:07 +0000 (02:14 +0200)] 
2010-07-31  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_kfreebsd.in: Make module handling more generic.

15 years ago2010-07-31 Robert Millan <rmh@gnu.org>
Robert Millan [Sat, 31 Jul 2010 16:45:57 +0000 (18:45 +0200)] 
2010-07-31  Robert Millan  <rmh@gnu.org>

* kern/emu/misc.c: Add missing license header.

15 years ago2010-07-31 Robert Millan <rmh@gnu.org>
Robert Millan [Sat, 31 Jul 2010 10:22:01 +0000 (12:22 +0200)] 
2010-07-31  Robert Millan  <rmh@gnu.org>

* configure.ac: Check for `libzfs.h' and `libnvpair.h'.

* include/grub/util/libnvpair.h: Include `<config.h>'.
[HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
declaring libnvpair prototypes ourselves.
* include/grub/util/libzfs.h: Include `<config.h>'.
[HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
declaring libzfs prototypes ourselves.

(libzfs_handle): Moved to ...
* include/grub/util/misc.h (libzfs_handle): ... here.
Include `<grub/util/libzfs.h>'.

15 years ago2010-07-30 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 30 Jul 2010 20:01:10 +0000 (22:01 +0200)] 
2010-07-30  Robert Millan  <rmh@gnu.org>

* include/grub/emu/misc.h: Add missing license header.

15 years ago2010-07-30 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 30 Jul 2010 19:43:12 +0000 (21:43 +0200)] 
2010-07-30  Robert Millan  <rmh@gnu.org>

Enable `grub-probe -t device' resolution on ZFS.

* configure.ac: Check for getfsstat(), libzfs and libnvpair.
* include/grub/util/libnvpair.h: New file.
* include/grub/util/libzfs.h: New file.

* kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
[HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
`<grub/util/libnvpair.h>'.
[HAVE_GETFSSTAT]: Include `<sys/mount.h>'.

(find_mount_point_from_dir): New static function.
[HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
function.
[HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
find_root_device_from_libzfs() before ressorting to find_root_device().

* include/grub/util/misc.h (grub_util_init_libzfs): New function
prototype.
* util/misc.c: Include `<grub/util/libzfs.h>'.
(grub_util_init_libzfs): New function.
[HAVE_LIBZFS] (libzfs_handle): New global variable.
[HAVE_LIBZFS] (fini_libzfs): New static function.
(grub_util_init_libzfs): New function.
* util/grub-probe.c (main): Call grub_util_init_libzfs().

15 years ago2010-07-30 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 30 Jul 2010 09:27:02 +0000 (11:27 +0200)] 
2010-07-30  Robert Millan  <rmh@gnu.org>

* include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
(xmalloc, xrealloc, xstrdup, xasprintf): Add
`warn_unused_result' attribute.
* include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
(grub_xasprintf, grub_xvasprintf): Likewise.
* include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.

15 years ago2010-07-29 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 29 Jul 2010 16:46:42 +0000 (18:46 +0200)] 
2010-07-29  Robert Millan  <rmh@gnu.org>

* util/grub-probe.c (PRINT_FS_LABEL): New enum value.
(probe): Handle `PRINT_FS_LABEL'.
(main): Handle `-t fs_label'.

15 years ago2010-07-29 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 29 Jul 2010 13:06:39 +0000 (15:06 +0200)] 
2010-07-29  Robert Millan  <rmh@gnu.org>

* configure.ac: Remove grub-mkisofs checks.

15 years ago * util/ieee1275/grub-install.in: Don't use empty grub_device.
Vladimir 'phcoder' Serbinenko [Wed, 28 Jul 2010 15:25:48 +0000 (18:25 +0300)] 
* util/ieee1275/grub-install.in: Don't use empty grub_device.
Reported by: Lennart Sorensen.

15 years agocleanup
BVK Chaitanya [Thu, 22 Jul 2010 17:52:36 +0000 (23:22 +0530)] 
cleanup

15 years agopull-in block-arg again
BVK Chaitanya [Thu, 22 Jul 2010 17:48:28 +0000 (23:18 +0530)] 
pull-in block-arg again

15 years agomerge with mainline
BVK Chaitanya [Thu, 22 Jul 2010 17:46:22 +0000 (23:16 +0530)] 
merge with mainline

15 years agoremoved unnecessary grammar rules
BVK Chaitanya [Thu, 22 Jul 2010 17:20:04 +0000 (22:50 +0530)] 
removed unnecessary grammar rules

15 years agopull-in func-params branch
BVK Chaitanya [Thu, 22 Jul 2010 17:10:06 +0000 (22:40 +0530)] 
pull-in func-params branch

15 years agomerge with mainline
BVK Chaitanya [Thu, 22 Jul 2010 17:09:42 +0000 (22:39 +0530)] 
merge with mainline

15 years agomerge with mainline
BVK Chaitanya [Thu, 22 Jul 2010 17:09:20 +0000 (22:39 +0530)] 
merge with mainline

15 years agopull-in func-params branch
BVK Chaitanya [Thu, 22 Jul 2010 17:07:10 +0000 (22:37 +0530)] 
pull-in func-params branch

15 years agomenuentry can pass parameters to its definition
BVK Chaitanya [Thu, 22 Jul 2010 15:45:14 +0000 (21:15 +0530)] 
menuentry can pass parameters to its definition

15 years agofix a memory issue
BVK Chaitanya [Thu, 22 Jul 2010 15:43:45 +0000 (21:13 +0530)] 
fix a memory issue

15 years agomenuentry option parsing is done using lib/arg.c
BVK Chaitanya [Thu, 22 Jul 2010 13:31:40 +0000 (19:01 +0530)] 
menuentry option parsing is done using lib/arg.c

15 years agopull-in block-arg again
BVK Chaitanya [Thu, 22 Jul 2010 00:04:38 +0000 (05:34 +0530)] 
pull-in block-arg again

15 years agosimplify
BVK Chaitanya [Wed, 21 Jul 2010 23:35:49 +0000 (05:05 +0530)] 
simplify

15 years agopull-in nested-record branch
BVK Chaitanya [Wed, 21 Jul 2010 23:33:49 +0000 (05:03 +0530)] 
pull-in nested-record branch

15 years agomemory management for block parameters
BVK Chaitanya [Wed, 21 Jul 2010 23:19:05 +0000 (04:49 +0530)] 
memory management for block parameters

15 years ago * util/grub.d/00_header.in: Remove compatibility with terminal.mod
Vladimir 'phcoder' Serbinenko [Wed, 21 Jul 2010 04:44:38 +0000 (06:44 +0200)] 
* util/grub.d/00_header.in: Remove compatibility with terminal.mod
prior to terminal_input/terminal_output separation. It's been over 1.5
years and those versions weren't widely deployed.

15 years agoreal name for Michael Guntsche
Colin Watson [Thu, 22 Jul 2010 08:44:19 +0000 (09:44 +0100)] 
real name for Michael Guntsche

15 years ago* disk/raid.c (insert_array): Don't count named arrays when looking
Colin Watson [Thu, 22 Jul 2010 08:38:06 +0000 (09:38 +0100)] 
* disk/raid.c (insert_array): Don't count named arrays when looking
for unused array numbers.
Reported and tested by: maru.

15 years agopull-in block-arg again
BVK Chaitanya [Tue, 20 Jul 2010 22:20:23 +0000 (03:50 +0530)] 
pull-in block-arg again

15 years agorestrict to only one block-arg (as last) param per command
BVK Chaitanya [Tue, 20 Jul 2010 22:17:30 +0000 (03:47 +0530)] 
restrict to only one block-arg (as last) param per command

15 years ago* bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
Colin Watson [Tue, 20 Jul 2010 22:16:32 +0000 (23:16 +0100)] 
* bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
implementation of this so that grub-emu links again, with a note
that this should support hotplugging in the future.

15 years ago* kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
Colin Watson [Tue, 20 Jul 2010 22:09:45 +0000 (23:09 +0100)] 
* kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.

15 years ago* disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
Colin Watson [Tue, 20 Jul 2010 21:14:26 +0000 (22:14 +0100)] 
* disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
handle on failure.
(grub_loopback_close): Remove empty function.
(grub_loopback_dev): Remove close method.

15 years agoDisable EFI cursor when the EFI console becomes inactive.
Colin Watson [Tue, 20 Jul 2010 21:00:18 +0000 (22:00 +0100)] 
Disable EFI cursor when the EFI console becomes inactive.
* term/efi/console.c (grub_efi_console_init): New function.
(grub_efi_console_fini): New function.
(grub_console_term_output): Register init and fini methods.

15 years ago * tests/util/grub-shell-tester.in: Remove bashism and declare as
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 20:10:23 +0000 (22:10 +0200)] 
* tests/util/grub-shell-tester.in: Remove bashism and declare as
sh script.

15 years ago * disk/loopback.c (grub_loopback): Replace filename with file.
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 19:56:00 +0000 (21:56 +0200)] 
* disk/loopback.c (grub_loopback): Replace filename with file.
(delete_loopback): Handle new semantics.
(grub_cmd_loopback): Likewise.
(grub_loopback_iterate): Likewise.
(grub_loopback_close): Likewise.

15 years ago * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 18:36:11 +0000 (20:36 +0200)] 
* util/i386/efi/grub-install.in: Revert to platform-specific behaviour
with -p "".
Reported by: Tito Keitel.

15 years ago * docs/grub.texi (Naming convention): Document new naming convention.
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 18:22:52 +0000 (20:22 +0200)] 
* docs/grub.texi (Naming convention): Document new naming convention.

15 years ago2010-07-20 Vadim Solomin <vadic052@gmail.com>
Vadim Solomin [Tue, 20 Jul 2010 16:14:00 +0000 (17:14 +0100)] 
2010-07-20  Vadim Solomin  <vadic052@gmail.com>
2010-07-20  Colin Watson  <cjwatson@ubuntu.com>

Generate device.map in something closer to the old ordering.

* util/deviceiter.c (struct device): New declaration.
(compare_file_names): Rename to ...
(compare_devices): ... this.  Sort by kernel name in preference to
the stable by-id name, but keep the latter as a fallback comparison.
Update header comment.
(grub_util_iterate_devices) [__linux__]: Construct and sort an array
of `struct device' rather than of plain file names.

Also-By: Colin Watson <cjwatson@ubuntu.com>
15 years ago * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
Thomas Frauendorfer [Tue, 20 Jul 2010 13:59:56 +0000 (15:59 +0200)] 
* lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
on i386.

15 years ago * commands/acpi.c (setup_common_tables): Use sizeof instead of
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 12:42:32 +0000 (14:42 +0200)] 
* commands/acpi.c (setup_common_tables): Use sizeof instead of
hardcoding size.
(setv1table): Likewise.

15 years ago2010-07-20 Colin Watson <cjwatson@ubuntu.com>
Felix Zielcke [Tue, 20 Jul 2010 10:26:27 +0000 (11:26 +0100)] 
2010-07-20  Colin Watson  <cjwatson@ubuntu.com>

* disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
* kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
(grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
(grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
if possible.
* util/i386/pc/grub-setup.c (main): Handle md/* devices.

* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
parameter.  Set its pointer target to 0.
* disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
parameter.  Set its pointer target to 0 for 0.9 metadata, or to the
`data_offset' value from the superblock for 1.x metadata.
* disk/raid.c (grub_raid_read): Offset reads by the start sector of
data on the device.
(insert_array): Record the start sector of data on the device.
(grub_raid_register): Pass start_sector parameters to
grub_raid_list->detect and insert_array.
* include/grub/raid.h (struct grub_raid_array): Add start_sector
member.
(struct grub_raid): Add start_sector parameter to `detect'.

* disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
__attribute__ ((packed)), leaving a comment.
(grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
(grub_mdraid_detect_09): ... here and ...
(grub_mdraid_detect_1x): ... here.

2010-07-20  Peter Henn  <peter.henn@web.de>

* disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
chunk size and disk size, which are already given as sector counts
as distinct from the 0.90 units.  Fetch the correct device number
from the role table instead of using the table index.

2010-07-20  Felix Zielcke  <fzielcke@z-51.de>

* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
* disk/mdraid_linux.c (grub_raid_super_1x): New structure.
(WriteMostly1): New macro.
Set array->name to NULL for metadata format 0.90.  Add support for
metadata 1.x.  Fix some comments.
* disk/raid.c (): Add support for name based RAID arrays.  Fix a
few comments.
* util/getroot.c (grub_util_get_grub_dev): Add support for
/dev/md/name style devices.

Also-By: Peter Henn <peter.henn@web.de>
Also-By: Colin Watson <cjwatson@ubuntu.com>
15 years ago* .bzrignore: Ignore 20_linux_xen.
Colin Watson [Tue, 20 Jul 2010 10:20:23 +0000 (11:20 +0100)] 
* .bzrignore: Ignore 20_linux_xen.

15 years ago* disk/mdraid_linux.c: Update copyright years.
Colin Watson [Tue, 20 Jul 2010 10:10:49 +0000 (11:10 +0100)] 
* disk/mdraid_linux.c: Update copyright years.
* disk/raid.c: Likewise.
* include/grub/raid.h: Likewise.
* kern/emu/getroot.c: Likewise.

15 years agofull menuentry command support
BVK Chaitanya [Mon, 19 Jul 2010 21:03:57 +0000 (02:33 +0530)] 
full menuentry command support

15 years agopull-in block-arg again
BVK Chaitanya [Mon, 19 Jul 2010 18:43:57 +0000 (00:13 +0530)] 
pull-in block-arg again

15 years agoadd {} around block-arg that is passed through argv
BVK Chaitanya [Mon, 19 Jul 2010 18:40:44 +0000 (00:10 +0530)] 
add {} around block-arg that is passed through argv

15 years ago* disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
Colin Watson [Mon, 19 Jul 2010 10:35:16 +0000 (11:35 +0100)] 
* disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
__attribute__ ((packed)), leaving a comment.
(grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
(grub_mdraid_detect_09): ... here and ...
(grub_mdraid_detect_1x): ... here.
* disk/raid.c (insert_array): Check for grub_xasprintf returning
NULL.

15 years agofix a memory leak
BVK Chaitanya [Sun, 18 Jul 2010 19:31:53 +0000 (01:01 +0530)] 
fix a memory leak

15 years agopull-in block-arg branch
BVK Chaitanya [Sun, 18 Jul 2010 19:23:18 +0000 (00:53 +0530)] 
pull-in block-arg branch

15 years agofix automatic option parsing for dynamic commands
BVK Chaitanya [Sun, 18 Jul 2010 19:14:21 +0000 (00:44 +0530)] 
fix automatic option parsing for dynamic commands

15 years ago* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
Colin Watson [Sun, 18 Jul 2010 17:31:10 +0000 (18:31 +0100)] 
* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
parameter.  Set its pointer target to 0.
* disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
parameter.  Set its pointer target to 0 for 0.9 metadata, or to the
`data_offset' value from the superblock for 1.x metadata.
* disk/raid.c (grub_raid_read): Offset reads by the start sector of
data on the device.
(insert_array): Record the start sector of data on the device.
(grub_raid_register): Pass start_sector parameters to
grub_raid_list->detect and insert_array.
* include/grub/raid.h (struct grub_raid_array): Add start_sector
member.
(struct grub_raid): Add start_sector parameter to `detect'.

15 years agomerge with mainline
BVK Chaitanya [Sun, 18 Jul 2010 16:33:28 +0000 (22:03 +0530)] 
merge with mainline

15 years agomerge with mainline
BVK Chaitanya [Sun, 18 Jul 2010 16:04:03 +0000 (21:34 +0530)] 
merge with mainline

15 years agomerge with mainline
BVK Chaitanya [Sun, 18 Jul 2010 15:53:58 +0000 (21:23 +0530)] 
merge with mainline

15 years agoundo changes to hello command
BVK Chaitanya [Sun, 18 Jul 2010 15:30:58 +0000 (21:00 +0530)] 
undo changes to hello command

15 years agoupdate dynamic cmd dispatch with scripts support
BVK Chaitanya [Sun, 18 Jul 2010 15:16:21 +0000 (20:46 +0530)] 
update dynamic cmd dispatch with scripts support

15 years ago* disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
Colin Watson [Sun, 18 Jul 2010 14:53:14 +0000 (15:53 +0100)] 
* disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
* kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
(grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
(grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
if possible.
* util/i386/pc/grub-setup.c (main): Handle md/* devices.

15 years ago* util/import_unicode.py: Remove unnecessary imports.
Colin Watson [Sat, 17 Jul 2010 18:27:18 +0000 (19:27 +0100)] 
* util/import_unicode.py: Remove unnecessary imports.

15 years agomerge mainline
Colin Watson [Sat, 17 Jul 2010 10:17:49 +0000 (11:17 +0100)] 
merge mainline

15 years ago Hotplugging and USB hub support.
Aleš Nesrsta [Sat, 17 Jul 2010 01:06:34 +0000 (03:06 +0200)] 
Hotplugging and USB hub support.

* bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
(grub_ohci): Likewise.
(GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
(GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
(GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
(GRUB_OHCI_CTRL_EDS): Likewise.
(GRUB_OHCI_BULK_EDS): Likewise.
(GRUB_OHCI_TDS): Likewise.
(GRUB_OHCI_ED_ADDR_MASK): Likewise.
(grub_ohci_ed_phys2virt): New function.
(grub_ohci_virt_to_phys): Likewise.
(grub_ohci_td_phys2virt): Likewise.
(grub_ohci_td_virt2phys): Likewise.
(grub_ohci_pci_iter): Allocate memory and don't wait for stable
attachment.
(grub_ohci_find_ed): New function.
(grub_ohci_alloc_td): Likewise.
(grub_ohci_free_td): Likewise.
(grub_ohci_free_tds): Likewise.
(grub_ohci_transfer): Use previously allocated memory.
(grub_ohci_portstatus): Reset status changed bit.
(grub_ohci_detect_dev): Supply status changed.
(grub_ohci_fini_hw): Free memory.
(grub_ohci_restore_hw): Reallocate memory.
* bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
Reset status change.
(grub_uhci_detect_dev): Supply status_change.
* bus/usb/usb.c (attach_hooks): New var.
(grub_usb_device_attach): New function.
(grub_usb_register_attach_hook_class): Likewise.
(grub_usb_unregister_attach_hook_class): Likewise.
* bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
(grub_usb_add_hub): Reset connection changed bit.
(attach_root_port): New function.
(grub_usb_root_hub): Likewise.
(poll_nonroot_hub): Likewise.
(grub_usb_poll_devices): Likewise.
* commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
* disk/usbms.c (grub_usbms_open): Use device hooks.
(grub_usbms_iterate) :Poll devices.
(grub_usbms_finddevs): Split into ...
(grub_usbms_attach): ... this ...
(grub_usbms_attach): ... and this.
* include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
in detect_dev.
(grub_usb_interface): New fields attached and detach_hook.
(grub_usb_attach_hook_class): New type.
(grub_usb_attach_desc): New struct.
(grub_usb_register_attach_hook_class): New function.
(grub_usb_unregister_attach_hook_class): Likewise.
(grub_usb_poll_devices): Likewise.
(grub_usb_device_attach): Likewise.
* include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
(GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.

15 years agoMerge mainline into usb
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 00:44:33 +0000 (02:44 +0200)] 
Merge mainline into usb

15 years ago * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New...
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:57:48 +0000 (01:57 +0200)] 
* include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
* partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
delta determination style. Works with most NetBSD partitions too.

15 years ago * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:55:01 +0000 (01:55 +0200)] 
* kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
* partmap/bsdlabel.c [GRUB_UTIL]: Likewise.

15 years ago * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:52:41 +0000 (01:52 +0200)] 
* disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.

15 years agomerge mainline into usb
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:14:13 +0000 (01:14 +0200)] 
merge mainline into usb

15 years agoUse inline functions instead of macros
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 22:57:14 +0000 (00:57 +0200)] 
Use inline functions instead of macros

15 years agoFix mismerge
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 22:56:38 +0000 (00:56 +0200)] 
Fix mismerge

15 years ago* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
Anton Blanchard [Wed, 14 Jul 2010 15:47:45 +0000 (16:47 +0100)] 
* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
ET_DYN files.

15 years agoFix condition in Makefile.in's LINGUAS assignment.
Grégoire Sutre [Wed, 14 Jul 2010 14:47:28 +0000 (16:47 +0200)] 
Fix condition in Makefile.in's LINGUAS assignment.

15 years agoDiscard improperly nested partitions.
Grégoire Sutre [Wed, 14 Jul 2010 09:26:17 +0000 (11:26 +0200)] 
Discard improperly nested partitions.

15 years ago* Makefile.in (.SUFFIX): Spell correctly, as ...
Colin Watson [Tue, 13 Jul 2010 11:24:07 +0000 (12:24 +0100)] 
* Makefile.in (.SUFFIX): Spell correctly, as ...
(.SUFFIXES): ... this.  Fixes bug where `make foo' (where foo is a
bare module name without `.mod', e.g. `test') tried to invoke a
Modula-2 compiler.

15 years ago* README: Point to the Info manual.
Colin Watson [Tue, 13 Jul 2010 11:20:32 +0000 (12:20 +0100)] 
* README: Point to the Info manual.

15 years ago * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
Jiro SEKIBA [Tue, 13 Jul 2010 09:47:30 +0000 (11:47 +0200)] 
* fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
2nd superblock position from partition size.

15 years agomerge with mainline
BVK Chaitanya [Mon, 12 Jul 2010 11:59:44 +0000 (17:29 +0530)] 
merge with mainline

15 years agomerge with mainline
BVK Chaitanya [Sun, 11 Jul 2010 15:44:18 +0000 (21:14 +0530)] 
merge with mainline

15 years ago* Makefile.in (MAINTAINER_CLEANFILES): Remove
Colin Watson [Sat, 10 Jul 2010 21:37:05 +0000 (22:37 +0100)] 
* Makefile.in (MAINTAINER_CLEANFILES): Remove
unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
outputs.

15 years ago Restructure SCSI .id handling.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:59:33 +0000 (02:59 +0200)] 
Restructure SCSI .id handling.
Reported and tested by: Aleš Nesrsta.

* disk/ata.c (grub_atapi_close): Removed. All users updated.
(grub_atapi_dev): Changed .name to "ata". New field .id.
* disk/usbms.c (grub_usbms_close): Removed. All users updated.
(grub_usbms_dev): New field .id.
* disk/scsi.c (grub_scsi_iterate): Generate name.
(grub_scsi_open): Parse name.
* include/grub/scsi.h (grub_make_scsi_id): New function.
(grub_scsi_dev): Change iterate and open to number instead of naming
busses. All users updated.
(grub_scsi): Remove name. Add .bus.

15 years ago * commands/help.c (grub_cmd_help): Fix a typo.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:40:41 +0000 (02:40 +0200)] 
* commands/help.c (grub_cmd_help): Fix a typo.

15 years ago * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:23:48 +0000 (02:23 +0200)] 
* normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
Reported and tested by: Colin Watson.

15 years ago * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:15:49 +0000 (02:15 +0200)] 
* util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
in this context.

15 years agoUSB hot-plugging
starous [Thu, 8 Jul 2010 20:54:35 +0000 (22:54 +0200)] 
USB hot-plugging