1. 27 Feb, 2016 3 commits
    • Leif Lindholm's avatar
      efidisk: Respect block_io_protocol buffer alignment · 51f375d6
      Leif Lindholm authored
      Returned from the OpenProtocol operation, the grub_efi_block_io_media
      structure contains the io_align field, specifying the minimum alignment
      required for buffers used in any data transfers with the device.
      
      Make grub_efidisk_readwrite() allocate a temporary buffer, aligned to
      this boundary, if the buffer passed to it does not already meet the
      requirements.
      
      Also sanity check the io_align field in grub_efidisk_open() for
      power-of-two-ness and bail if invalid.
      51f375d6
    • Andrei Borzenkov's avatar
      109189ce
    • Andrei Borzenkov's avatar
      efidisk: prevent errors from diskfilter scan of removable drives · b00e4c2b
      Andrei Borzenkov authored
      Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is ignored by diskfilter. This
      actually matches pretty close (we obviously attempt to read outside of media)
      and avoids adding more error codes.
      
      This affects only internally initiated scans. If read/write from removable is
      explicitly requested, we still return an error and text explanation is more
      clear for user than generic error.
      
      Reported and tested by Andreas Loew <Andreas.Loew@gmx.net>
      b00e4c2b
  2. 13 Jan, 2016 1 commit
  3. 07 May, 2015 1 commit
  4. 25 Jan, 2015 1 commit
  5. 25 Dec, 2013 1 commit
  6. 15 Dec, 2013 1 commit
  7. 11 Dec, 2013 1 commit
  8. 02 Nov, 2013 2 commits
  9. 19 Oct, 2013 1 commit
  10. 14 Oct, 2013 1 commit
  11. 18 Sep, 2013 1 commit
  12. 29 Apr, 2013 1 commit
  13. 17 Apr, 2013 2 commits
  14. 15 Apr, 2013 1 commit
  15. 05 Apr, 2013 1 commit
  16. 04 Apr, 2013 1 commit
  17. 01 Mar, 2013 1 commit
  18. 27 Feb, 2013 1 commit
  19. 20 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from device iterators. · 25239370
      Colin Watson authored
      * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
      (grub_arc_iterate_devs): Add hook_data argument.
      * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
      (struct grub_ata_dev.iterate): Add hook_data argument.
      * include/grub/device.h (grub_device_iterate_hook_t): New type.
      (grub_device_iterate): Add hook_data argument.
      * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
      (struct grub_disk_dev.iterate): Add hook_data argument.
      (grub_disk_dev_iterate): Likewise.
      * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
      Likewise.
      * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
      Likewise.
      * include/grub/partition.h (grub_partition_iterate_hook_t): New
      type.
      (struct grub_partition_map.iterate): Add hook_data argument.
      (grub_partition_iterate): Likewise.
      * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
      (struct grub_scsi_dev.iterate): Add hook_data argument.
      
      Update all callers.
      25239370
  20. 09 Jun, 2012 1 commit
  21. 08 Jun, 2012 1 commit
  22. 12 Feb, 2012 1 commit
  23. 28 Jan, 2012 1 commit
  24. 13 Dec, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Add noreturn attributes and remove unreachable code. · 02a2bf83
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
      	code.
      	* grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
      	code. Mark as noreturn.
      	* grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
      	* grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
      	* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
      	unreachable code.
      	* grub-core/kern/main.c (grub_main): Mark as noreturn.
      	* grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
      	* grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
      	* grub-core/normal/menu.c (run_menu): Remove unreachable code.
      	* include/grub/kernel.h (grub_main): Mark as noreturn.
      	* include/grub/reader.h (grub_rescue_run): Likewise.
      02a2bf83
  25. 10 Jul, 2011 1 commit
  26. 08 Jul, 2011 1 commit
  27. 02 Jul, 2011 2 commits
  28. 15 Apr, 2011 1 commit
  29. 05 Apr, 2011 1 commit
  30. 29 Mar, 2011 1 commit
  31. 21 Sep, 2010 1 commit
  32. 14 Sep, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * include/grub/disk.h (grub_disk): Remove has_partitions. · 94564f81
      Vladimir 'phcoder' Serbinenko authored
      	All users updated.
      	* disk/loopback.c (grub_loopback): Remove has_partitions.
      	All users updated.
      	(options): Remove partitions. All users updated.
      	* util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
      	* util/i386/pc/grub-setup.c (setup): copy partition table only when
      	actual partition table is found.
      94564f81
  33. 09 Sep, 2010 2 commits
  34. 06 May, 2010 1 commit