From 794d8ef2af27b427070f638b7e8700439f4be3c8 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sun, 12 Feb 2012 17:36:33 +0100 Subject: [PATCH] * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running on partition. --- ChangeLog | 9 +++++++-- grub-core/commands/hdparm.c | 6 ------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index a958ded14..3e9bde962 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,13 @@ -2012-02-08 Vladimir Serbinenko +2012-02-12 Vladimir Serbinenko + + * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running + on partition. + +2012-02-12 Vladimir Serbinenko * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno. -2012-02-08 Vladimir Serbinenko +2012-02-12 Vladimir Serbinenko Improve string. Gettextize. diff --git a/grub-core/commands/hdparm.c b/grub-core/commands/hdparm.c index 70635739d..d1e2178c4 100644 --- a/grub-core/commands/hdparm.c +++ b/grub-core/commands/hdparm.c @@ -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: