]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years agoReintroduce open/close of net cards. Clean up ofnet.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 14:37:14 +0000 (16:37 +0200)]
Reintroduce open/close of net cards. Clean up ofnet.

13 years agoFix mod_gap definition
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 13:10:47 +0000 (15:10 +0200)]
Fix mod_gap definition

13 years agoPrevent garbage from getting into aout header
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 12:55:28 +0000 (14:55 +0200)]
Prevent garbage from getting into aout header

13 years agocleanup pxe and efi network release
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 12:34:10 +0000 (14:34 +0200)]
cleanup pxe and efi network release

13 years agoRestructurisations, cleanups and few bugfixes
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 20:13:33 +0000 (22:13 +0200)]
Restructurisations, cleanups and few bugfixes

13 years agoDon't react to adressed bootp packets unless in bootp transaction
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 18:11:29 +0000 (20:11 +0200)]
Don't react to adressed bootp packets unless in bootp transaction

13 years agoadd missing brackets in efi_wrap macroses
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 16:57:24 +0000 (18:57 +0200)]
add missing brackets in efi_wrap macroses

13 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 16:52:50 +0000 (18:52 +0200)]
merge mainline into net

13 years agominor stylistic cleanup
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 16:05:40 +0000 (18:05 +0200)]
minor stylistic cleanup

13 years agoFix broken blksize negotiation, fix broken seek and change a way net device is filled...
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 15:58:23 +0000 (17:58 +0200)]
Fix broken blksize negotiation, fix broken seek and change a way net device is filled n i386-pc

13 years agoAutomatically determine prefix when netbooted on EFI
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 14:56:35 +0000 (16:56 +0200)]
Automatically determine prefix when netbooted on EFI

13 years agounify prefix handling across platforms
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 12:09:36 +0000 (14:09 +0200)]
unify prefix handling across platforms

13 years ago * grub-core/Makefile.core.def (chain): Fix coreboot filename.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 17:30:16 +0000 (19:30 +0200)]
* grub-core/Makefile.core.def (chain): Fix coreboot filename.

13 years ago * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 17:26:52 +0000 (19:26 +0200)]
* grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
mismerge.

13 years ago Chainloading on coreboot support.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 12:14:11 +0000 (14:14 +0200)]
Chainloading on coreboot support.

* grub-core/Makefile.core.def (chain): Add coreboot.
* grub-core/loader/i386/coreboot/chainloader.c: New file.

13 years ago * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 11:57:03 +0000 (13:57 +0200)]
* grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
if it happens.

13 years ago Implement time command.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 10:31:37 +0000 (12:31 +0200)]
Implement time command.

* grub-core/Makefile.core.def (time): New module.
* grub-core/commands/time.c: New file.
* grub-core/script/parser.y: Remove "time" keyword.
* grub-core/script/yylex.l: Likewise.

13 years ago * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 10:28:47 +0000 (12:28 +0200)]
* include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.

13 years ago * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 10:18:44 +0000 (12:18 +0200)]
* grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
when handling leftovers.

13 years ago * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 10:16:00 +0000 (12:16 +0200)]
* util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
so that help2man doesn't fail.

13 years ago * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 10:13:21 +0000 (12:13 +0200)]
* grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
type in pointers on sparc64.
(get_card_packet): Likewise.

13 years ago* grub-core/commands/videoinfo.c (hook): Indicate current video mode
Colin Watson [Mon, 27 Jun 2011 09:47:02 +0000 (10:47 +0100)]
* grub-core/commands/videoinfo.c (hook): Indicate current video mode
with `*'.
(grub_cmd_videoinfo): Fetch current video mode.

13 years ago * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 08:12:35 +0000 (10:12 +0200)]
* grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
because of underlying system restrictions.

13 years ago * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 07:06:15 +0000 (09:06 +0200)]
* util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
necessary.

13 years ago Coreboot video support.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 06:54:55 +0000 (08:54 +0200)]
Coreboot video support.

* grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
(vbe): Likewise.
* grub-core/kern/i386/coreboot/startup.S: Include int.S.
* grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
here ...
* grub-core/kern/i386/int.S: ... here.
* grub-core/video/i386/pc/vbe.c: Updated includes.
* grub-core/video/i386/pc/vga.c: Likewise.
* include/grub/i386/coreboot/memory.h
(GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
(GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
(GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
* include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
Disable interrupts.
* include/grub/i386/pc/vga.h: Removed. All users updated.

13 years ago * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 06:43:13 +0000 (08:43 +0200)]
* grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
definitions for dprintf.
* grub-core/disk/pata.c (grub_pata_readwrite): Likewise.

13 years ago * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 06:40:17 +0000 (08:40 +0200)]
* grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
prototype.
(get_card_packet): Likewise.

13 years agoFix incorrect ISR PXE calls
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 04:31:25 +0000 (06:31 +0200)]
Fix incorrect ISR PXE calls

13 years agomknetdir support for EFI
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:47:05 +0000 (22:47 +0200)]
mknetdir support for EFI

13 years agoefinet support
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:42:04 +0000 (22:42 +0200)]
efinet support

13 years agoFew ofnet cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:38:43 +0000 (22:38 +0200)]
Few ofnet cleanups

13 years agoPrint MAC address when listing cards
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:37:49 +0000 (22:37 +0200)]
Print MAC address when listing cards

13 years agoDon't do unaligned access when parsing DHCP packet
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 20:37:19 +0000 (22:37 +0200)]
Don't do unaligned access when parsing DHCP packet

13 years agoDisplay the path of the file when file is not found
Yves Blusseau [Sun, 26 Jun 2011 19:48:52 +0000 (21:48 +0200)]
Display the path of the file when file is not found

* grub-core/fs/fat.c: Display the filename when file is not found.
* grub-core/fs/fshelp.c: Likewise.
* grub-core/fs/hfs.c: Likewise.
* grub-core/fs/jfs.c: Likewise.
* grub-core/fs/minix.c: Likewise.
* grub-core/fs/ufs.c: Likewise.
* grub-core/fs/btrfs.c: Likewise.
* grub-core/commands/i386/pc/play.c: Likewise.

13 years agoAdd ofnet and tftp modules
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 17:52:50 +0000 (19:52 +0200)]
Add ofnet and tftp modules

13 years agoadd missing quotes and fix variable name
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 16:23:12 +0000 (18:23 +0200)]
add missing quotes and fix variable name

13 years agomissing part of previous commit
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:51:46 +0000 (17:51 +0200)]
missing part of previous commit

13 years agoremove leftover directory
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:28:57 +0000 (17:28 +0200)]
remove leftover directory

13 years agomknetdir support for ieee1275
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:28:19 +0000 (17:28 +0200)]
mknetdir support for ieee1275

13 years agominor cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:18:53 +0000 (17:18 +0200)]
minor cleanups

13 years ago * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
Szymon Janc [Sun, 26 Jun 2011 15:17:41 +0000 (17:17 +0200)]
* grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
pointer checks before calling grub_free().
* grub-core/commands/wildcard.c (match_devices): Likewise.
* grub-core/commands/wildcard.c (match_files): Likewise.
* grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
* grub-core/fs/cpio.c (grub_cpio_open): Likewise.
* grub-core/fs/udf.c (grub_udf_read_block): Likewise.
* grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
* grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
* grub-core/script/yylex.l (grub_lexer_unput): Likewise.
* grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
* grub-core/video/readers/png.c (grub_png_output_byte): Likewise.

13 years agoAdd backward compatibiulity with old (pxe) syntax. Several cleanups
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 15:06:18 +0000 (17:06 +0200)]
Add backward compatibiulity with old (pxe) syntax. Several cleanups

13 years agoFix incorrect memset
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 12:47:38 +0000 (14:47 +0200)]
Fix incorrect memset

13 years agoSend network packets on PXE
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 02:19:12 +0000 (04:19 +0200)]
Send network packets on PXE

13 years agoFix a memory leak
Vladimir 'phcoder' Serbinenko [Sun, 26 Jun 2011 02:18:45 +0000 (04:18 +0200)]
Fix a memory leak

13 years ago * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
Patrick [Fri, 24 Jun 2011 23:09:32 +0000 (01:09 +0200)]
* grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.

13 years ago * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 22:18:36 +0000 (00:18 +0200)]
* grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
(grub_pxe_send): Likewise.
(GRUB_MOD_INIT): Fix types.

13 years ago * grub-core/io/xzio.c: Fix code style issues
Szymon Janc [Fri, 24 Jun 2011 20:37:17 +0000 (22:37 +0200)]
* grub-core/io/xzio.c: Fix code style issues

13 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 20:20:50 +0000 (22:20 +0200)]
merge mainline into net

13 years ago Network infrastructure.
Manoel Rebelo Abranches [Fri, 24 Jun 2011 20:16:05 +0000 (22:16 +0200)]
Network infrastructure.
The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>

* include/grub/net/arp.h: New file.
* include/grub/net/device.h: Likewise.
* include/grub/net/ethernet.h: Likewise.
* include/grub/net/ip.h: Likewise.
* include/grub/net/netbuff.h: Likewise.
* include/grub/net/tftp.h: Likewise.
* include/grub/net/udp.h: Likewise.
* include/grub/ieee1275/ofnet.h: Likewise.
* include/grub/emu/export.h: Likewise.
* include/grub/net.h: Likewise.
* grub-core/net/arp.c: Likewise.
* grub-core/net/ethernet.c: Likewise.
* grub-core/net/ip.c: Likewise.
* grub-core/net/udp.c: Likewise.
* grub-core/net/tftp.c: Likewise.
* grub-core/net/netbuff.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/net/drivers/emu/emunet.c: Likewise.
* grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
export.h.
* grub-core/Makefile.core.def (net): New module.
(tftp): Likewise.
(ofnet): Likewise.
(emunet): Likewise.
* grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
network protocols.
* grub-core/kern/device.c (grub_net_open) : New variable.
(grub_device_open): Handle network device.
(grub_device_close): Likewise.
* grub-core/kern/file.c (grub_file_net_seek) : New variable.
(grub_grubnet_fini): Likewise.
(grub_file_seek): Seek in network device.
* grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
* grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
network root.
(grub_machine_fini): Call grub_grubnet_fini.
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
network.
(grub_ieee1275_get_aliasdevname): New function.
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
Add unofficial Solaris network info.
(grub_multiboot_make_mbi): Likewise.
* grub-core/fs/i386/pc/pxe.c: Moved from here ...
* grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
* include/grub/device.h (grub_fs): Removed.
* include/grub/err.h (grub_err_t): Add network-related values.
* include/grub/i386/pc/pxe.h: Removed bootp parts.
* include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
(grub_ieee1275_get_aliasdevname): New proto.
* include/grub/net.h: Rewritten.

Also-By: Paulo Pinatti <ppinatti@br.ibm.com>
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
13 years agomerge mine and abranches' branches. Fix several issues
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 19:51:57 +0000 (21:51 +0200)]
merge mine and abranches' branches. Fix several issues

13 years agobootp support
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 18:35:25 +0000 (20:35 +0200)]
bootp support

13 years ago * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 16:26:20 +0000 (18:26 +0200)]
* grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
names.

13 years ago * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 11:43:10 +0000 (13:43 +0200)]
* grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
(wildcard_expand): Don't stop on nonregexp parts after regexp ones since
it truncates the output.
Reported by: Ximin Luo.

13 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 11:02:49 +0000 (13:02 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..

13 years ago * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 10:41:05 +0000 (12:41 +0200)]
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
partmap before abstraction.

13 years ago * util/grub-mkconfig_lib.in: Add missing quotes.
Alexander Kurtz [Fri, 24 Jun 2011 10:38:24 +0000 (12:38 +0200)]
* util/grub-mkconfig_lib.in: Add missing quotes.

13 years ago * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
Vladimir 'phcoder' Serbinenko [Fri, 24 Jun 2011 02:32:54 +0000 (04:32 +0200)]
* grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
old method if mountinfo would return /dev/root and /dev/root doesn't
exist.

13 years ago ZFS zlib support
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 22:31:29 +0000 (00:31 +0200)]
ZFS zlib support

* grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
(decomp_table): Add zlib entries.
(zio_read): USe 8 bits for compression function rather than 3.
* include/grub/zfs/zio.h (zio_compress): Add zlib values.

13 years ago * grub-core/disk/ahci.c: Add missing license statements.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 22:29:21 +0000 (00:29 +0200)]
* grub-core/disk/ahci.c: Add missing license statements.
* grub-core/fs/romfs.c: Likewise.
* grub-core/lib/ia64/setjmp.S: Likewise.
* grub-core/loader/i386/pc/freedos.c: Likewise.
* grub-core/loader/ia64/efi/linux.c: Likewise.
* grub-core/video/colors.c: Likewise.
* include/grub/dl.h (GRUB_MOD_DEP): New macro.

13 years ago AHCI support.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 22:07:55 +0000 (00:07 +0200)]
AHCI support.

* grub-core/Makefile.core.def (ata_pthru): Removed.
(ahci): New module.
(pata): Likewise.
* grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
on unload.
* grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
readwrite.
(grub_hdparm_do_check_powermode_cmd): Likewise.
(grub_hdparm_do_smart_cmd): Likewise.
(grub_hdparm_set_val_cmd): Likewise.
(grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
* grub-core/disk/ahci.c: New file.
* grub-core/disk/ata.c: Factor out the low-level part into ...
* grub-core/disk/pata.c: ... here.
* grub-core/disk/ata_pthru.c: Contents moved to ...
* grub-core/disk/pata.c: ... here.
* grub-core/disk/scsi.c (grub_scsi_names): New array.
(grub_scsi_iterate): Use grub_scsi_names.
(grub_scsi_open): Likewise.
* grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
* include/grub/ata.h (grub_ata_commands): Add DMA commands.
(grub_ata_regs_t): New struct.
(grub_disk_ata_pass_through_parms): Likewise.
(grub_ata_device): Renamed to ...
(grub_ata): ... this.
(grub_ata_dev): New struct.
Removed all low-level inline functions.
* include/grub/scsi.h: Add PATA and AHCI subsystems.
(grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
iterate hooks and open. All users updated.
* util/grub-install.in: Handle AHCI disk module.

13 years ago Add support for DRI and RSTn markers in JPEG files.
Szymon Janc [Thu, 23 Jun 2011 21:13:20 +0000 (23:13 +0200)]
Add support for DRI and RSTn markers in JPEG files.

* grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
(JPEG_MARKER_RST0): Likewise.
(JPEG_MARKER_RST1): Likewise.
(JPEG_MARKER_RST2): Likewise.
(JPEG_MARKER_RST3): Likewise.
(JPEG_MARKER_RST4): Likewise.
(JPEG_MARKER_RST5): Likewise.
(JPEG_MARKER_RST6): Likewise.
(JPEG_MARKER_RST7): Likewise.
(grub_jpeg_data): New fields dri, r1, bitmap_ptr.
(grub_jpeg_decode_dri): New function.
(grub_jpeg_decode_sos): Move image data related part into
grub_jpeg_decode_data function.
(grub_jpeg_decode_data): New function.
(grub_jpeg_reset): New function.
(grub_jpeg_decode_jpeg): Handle new markers.

13 years ago * util/ieee1275/ofpath.c (check_sas): Close fd.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 20:18:31 +0000 (22:18 +0200)]
* util/ieee1275/ofpath.c (check_sas): Close fd.
(main): Free of_path.
Reported by: David Volgyes <dvolgyes>.

13 years ago * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 20:11:42 +0000 (22:11 +0200)]
* util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
Reported by: David Volgyes <dvolgyes>.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 20:02:05 +0000 (22:02 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
file after stat.
Reported by: David Volgyes <dvolgyes>.

13 years ago * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 19:06:50 +0000 (21:06 +0200)]
* util/raid.c (grub_util_raid_getmembers): Close fd before returning.

Reported by: David Volgyes <dvolgyes>.

13 years ago * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:58:35 +0000 (20:58 +0200)]
* grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
Prevent memory leak.

13 years ago * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:55:36 +0000 (20:55 +0200)]
* grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
(main): Close file.

13 years ago * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:38:19 +0000 (20:38 +0200)]
* grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
to continue if allocation is failed.

Reported by: David Volgyes <dvolgyes>.

13 years ago * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
David Volgyes [Thu, 23 Jun 2011 18:28:04 +0000 (20:28 +0200)]
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
dereference.

13 years ago Fix spurious warning.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 18:05:39 +0000 (20:05 +0200)]
Fix spurious warning.

* grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
(acorn_partition_map_find): Use .bin member.

13 years ago * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 17:50:41 +0000 (19:50 +0200)]
* grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
/dev/root as a valid device.

13 years ago Avoid NULL deref in grub_device_open.
Jim Meyering [Thu, 23 Jun 2011 16:08:53 +0000 (18:08 +0200)]
Avoid NULL deref in grub_device_open.

* grub-core/kern/device.c (grub_device_open): Don't dereference
a NULL pointer upon failed grub_env_get.

13 years ago Support non-512B sectors and agglomerate reads.
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 14:45:52 +0000 (16:45 +0200)]
Support non-512B sectors and agglomerate reads.

* Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
* grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
(disk_io_guid): Removed.
(make_devices): Locate solely by BlockIO.
(grub_efidisk_open): Fill log_sector_size and total_sectors.
(grub_efidisk_read): Use read_blocks.
(grub_efidisk_write): Use write_blocks.
* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
log_sector_size.
(get_safe_sectors): Handle non-512B sectors.
(grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
sectors.
(grub_biosdisk_write): Handle non-512B sectors.
* grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
(grub_scsi_read): Remove special non-512B block handling (now handled
one level up).
* grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
and do sanity checks.
(grub_disk_adjust_range): Handle non-512B sectors.
(transform_sector): New function.
(grub_disk_read_small): Likewise.
(grub_disk_read): Rewritten.
(grub_disk_write): Handle non-512B sectors.
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
log_sector_size.
(open_device): Use log_sector_size.
(grub_util_biosdisk_read): Likewise.
(grub_util_biosdisk_write): Likewise.
* grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
non-512B sectors.
(pc_partition_map_embed): Likewise.
* include/grub/disk.h (grub_disk): New field log_sector_size.
(GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
(GRUB_DISK_CACHE_BITS): Increased to 6.
* util/grub-fstest.c (fstest): New command testload.
(argp_parser): Likewise.

13 years agoFixed a cache collision bug. Thanks guufy1 for bugreport and test
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 07:39:12 +0000 (09:39 +0200)]
Fixed a cache collision bug. Thanks guufy1 for bugreport and test

13 years agoNew testload grub-fstest command
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 06:45:12 +0000 (08:45 +0200)]
New testload grub-fstest command

13 years agomerge mainline into 4096
Vladimir 'phcoder' Serbinenko [Thu, 23 Jun 2011 02:08:37 +0000 (04:08 +0200)]
merge mainline into 4096

13 years agoAdd error verification in netbuff operations.
Manoel R. Abranches [Sat, 18 Jun 2011 23:20:53 +0000 (20:20 -0300)]
Add error verification in netbuff operations.

13 years agoClose cards before boot.
Manoel R. Abranches [Sat, 18 Jun 2011 23:18:25 +0000 (20:18 -0300)]
Close cards before boot.

13 years ago2011-06-16 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 16 Jun 2011 12:33:11 +0000 (14:33 +0200)]
2011-06-16  Robert Millan  <rmh@gnu.org>

        Detect `ataraid' devices on GNU/kFreeBSD.  Fix for ATA devices using
        `ata' driver on kernel of FreeBSD 9.

        * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
        (get_ataraid_disk_name): New functions.
        [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
        (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
        get_ataraid_disk_name() and get_ada_disk_name().

13 years agoPrevent crash when detecting fs.
Manoel R. Abranches [Wed, 15 Jun 2011 18:11:26 +0000 (15:11 -0300)]
Prevent crash when detecting fs.

13 years ago* docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
Colin Watson [Mon, 13 Jun 2011 16:35:50 +0000 (17:35 +0100)]
* docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
input format.

13 years agoRun indent on files.
Manoel Rebelo Abranches [Wed, 8 Jun 2011 00:59:53 +0000 (21:59 -0300)]
Run indent on files.

13 years agoWrite ChangeLog.
Manoel Rebelo Abranches [Tue, 7 Jun 2011 14:47:31 +0000 (11:47 -0300)]
Write ChangeLog.

13 years agoFix compilation in x86
Manoel R. Abranches [Thu, 2 Jun 2011 18:13:33 +0000 (15:13 -0300)]
Fix compilation in x86

13 years ago* docs/grub.texi (Obtaining and Building GRUB): Substitute
Colin Watson [Sun, 29 May 2011 21:15:08 +0000 (22:15 +0100)]
* docs/grub.texi (Obtaining and Building GRUB): Substitute
`ftp.gnu.org' for `alpha.gnu.org'.

13 years ago* grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
Colin Watson [Fri, 27 May 2011 12:57:22 +0000 (13:57 +0100)]
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
partitions under /dev/disk/by-id/.

13 years ago* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
Colin Watson [Fri, 27 May 2011 12:52:21 +0000 (13:52 +0100)]
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
after ten consecutive open failures.  Scanning all the way up to
10000 is excessive and can cause serious performance problems in
some configurations.
Fixes Ubuntu bug #787461.

13 years agoMerge Mainline.
Manoel R. Abranches [Fri, 27 May 2011 03:23:33 +0000 (00:23 -0300)]
Merge Mainline.

13 years agoUse a net fs struct to handle open, reand and close in file.
Manoel R. Abranches [Fri, 27 May 2011 03:22:35 +0000 (00:22 -0300)]
Use a net fs struct to handle open, reand and close in file.

13 years agoRemove unused structs and functions.
Manoel Rebelo Abranches [Wed, 25 May 2011 14:10:48 +0000 (11:10 -0300)]
Remove unused structs and functions.

13 years ago * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
Vladimir 'phcoder' Serbinenko [Sat, 21 May 2011 05:05:46 +0000 (07:05 +0200)]
* grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
opening new one.

13 years ago Don't stat devices unless we have to.
Vladimir Serbinenko [Sat, 21 May 2011 05:03:55 +0000 (07:03 +0200)]
Don't stat devices unless we have to.

* grub-core/kern/emu/getroot.c (grub_find_device): Recognize
dir == /dev/mapper.
(grub_guess_root_device): Use already known os_dev if possible.
* grub-core/kern/emu/hostdisk.c
(convert_system_partition_to_system_disk): Scan only in /dev/mapper
if device is known to be a dm one.

Also-By: Colin Watson <cjwatson@ubuntu.com>
13 years ago* util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
Colin Watson [Fri, 20 May 2011 10:21:36 +0000 (11:21 +0100)]
* util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
Reported by: Pawel Tecza.

13 years agofix several bugs
Vladimir 'phcoder' Serbinenko [Thu, 19 May 2011 13:39:34 +0000 (15:39 +0200)]
fix several bugs

13 years ago * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
Vladimir 'phcoder' Serbinenko [Thu, 19 May 2011 10:13:18 +0000 (12:13 +0200)]
* grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
(lsefisystab): Likewise.
(lssal): Likewise.
(lsefimmap): Likewise.
(hdparm): Enable on qemu-mips.
(setjmp): Add ia64 nodist.
(serial): Simplify tags.

13 years ago* Makefile.util.def (grub-ofpathname): Install manual page.
Colin Watson [Wed, 18 May 2011 16:31:50 +0000 (17:31 +0100)]
* Makefile.util.def (grub-ofpathname): Install manual page.

13 years ago * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
Colin Watson [Wed, 18 May 2011 15:16:59 +0000 (17:16 +0200)]
* grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.

13 years ago* .bzrignore: Add grub-core/modinfo.sh and a number of test files.
Colin Watson [Wed, 18 May 2011 15:10:52 +0000 (16:10 +0100)]
* .bzrignore: Add grub-core/modinfo.sh and a number of test files.

13 years ago * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
Vladimir 'phcoder' Serbinenko [Wed, 18 May 2011 13:37:18 +0000 (15:37 +0200)]
* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
into dprintf.