* grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running

on partition.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-12 17:36:33 +01:00
parent f991dd3c32
commit 794d8ef2af
2 changed files with 7 additions and 8 deletions

View file

@ -1,8 +1,13 @@
2012-02-08 Vladimir Serbinenko <phcoder@gmail.com> 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
on partition.
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/misc.h (grub_error_save): Fix cleaning grub_errno. * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
2012-02-08 Vladimir Serbinenko <phcoder@gmail.com> 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
Improve string. Gettextize. Improve string. Gettextize.

View file

@ -314,12 +314,6 @@ grub_cmd_hdparm (grub_extcmd_context_t ctxt, int argc, char **args)
if (! disk) if (! disk)
return grub_errno; return grub_errno;
if (disk->partition)
{
grub_disk_close (disk);
return grub_error (GRUB_ERR_BAD_ARGUMENT, "partition not allowed");
}
switch (disk->dev->id) switch (disk->dev->id)
{ {
case GRUB_DISK_DEVICE_ATA_ID: case GRUB_DISK_DEVICE_ATA_ID: