Received: from eggs.gnu.org ([2001:4830:134:3::10]:57887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3ZoB-0001rH-3O for qemu-devel@nongnu.org; Wed, 26 Apr 2017 23:09:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3ZoA-00066n-7E for qemu-devel@nongnu.org; Wed, 26 Apr 2017 23:09:31 -0400 References: <1493107736-6608-1-git-send-email-thuth@redhat.com> From: Thomas Huth Message-ID: Date: Thu, 27 Apr 2017 05:09:18 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Issue a deprecation warning if the user specifies the "-hdachs" option. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org, Kevin Wolf , Max Reitz Cc: qemu-block@nongnu.org On 26.04.2017 15:44, Paolo Bonzini wrote: > > > On 25/04/2017 10:08, Thomas Huth wrote: >> If the user needs to specify the disk geometry, the corresponding >> parameters of the "-drive" option should be used instead. "-hdachs" >> is considered as deprecated and might be removed soon. >> >> Signed-off-by: Thomas Huth >> --- >> vl.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/vl.c b/vl.c >> index 0b4ed52..0980213 100644 >> --- a/vl.c >> +++ b/vl.c >> @@ -3230,6 +3230,8 @@ int main(int argc, char **argv, char **envp) >> } >> } >> } >> + error_report("'-hdachs' is deprecated. Please use '-drive" >> + " ...,cyls=c,heads=h,secs=s,trans=t' instead."); >> break; >> case QEMU_OPTION_numa: >> opts = qemu_opts_parse_noisily(qemu_find_opts("numa"), >> > > Not even this, which should also be deprecated; please suggest using > "-device ide-hd" instead. D'oh, you're right, of course ... I'll send a v3 ... Thomas