* grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
on partition.
This commit is contained in:
parent
f991dd3c32
commit
794d8ef2af
2 changed files with 7 additions and 8 deletions
|
@ -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.
|
||||
|
||||
2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Improve string. Gettextize.
|
||||
|
||||
|
|
|
@ -314,12 +314,6 @@ grub_cmd_hdparm (grub_extcmd_context_t ctxt, int argc, char **args)
|
|||
if (! disk)
|
||||
return grub_errno;
|
||||
|
||||
if (disk->partition)
|
||||
{
|
||||
grub_disk_close (disk);
|
||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, "partition not allowed");
|
||||
}
|
||||
|
||||
switch (disk->dev->id)
|
||||
{
|
||||
case GRUB_DISK_DEVICE_ATA_ID:
|
||||
|
|
Loading…
Reference in a new issue