[Avocado-devel] [Qemu-devel] [PATCH] net/slirp: Tell the users when they are using deprecated options

Markus Armbruster armbru at redhat.com
Wed Jan 13 07:24:14 UTC 2016


Jason Wang <jasowang at redhat.com> writes:

> On 01/13/2016 10:58 AM, Jason Wang wrote:
>>
>> On 01/12/2016 07:45 PM, Cleber Rosa wrote:
>>> ----- Original Message -----
>>>> From: "Thomas Huth" <thuth at redhat.com>
>>>> To: "Jason Wang" <jasowang at redhat.com>, "Jan Kiszka"
>>>> <jan.kiszka at siemens.com>, qemu-devel at nongnu.org
>>>> Cc: "Paolo Bonzini" <pbonzini at redhat.com>,
>>>> avocado-devel at redhat.com, "Markus Armbruster" <armbru at redhat.com>
>>>> Sent: Tuesday, January 12, 2016 5:26:36 AM
>>>> Subject: Re: [Qemu-devel] [PATCH] net/slirp: Tell the users when
>>>> they are using deprecated options
>>>>
>>>> On 12.01.2016 04:42, Jason Wang wrote:
>>>>> On 01/11/2016 11:55 PM, Thomas Huth wrote:
>>>>>> On 15.12.2015 09:35, Thomas Huth wrote:
>>>>>>> We don't want to support the legacy -tftp, -bootp, -smb and
>>>>>>> -net channel options forever. So let's start telling the users
>>>>>>> that they will go away in a future version.
>>>>>>>
>>>>>>> Signed-off-by: Thomas Huth <thuth at redhat.com>
[...]
> Rethinking about this.  I'm not quite sure we can remove those
> especially "-net user". Google qemu "-net user" gives about 15,900
> results (and the first link is qemu wiki). Maybe we can replace "will be
> removed in a future version." with something like "was suggested to use
> -netdev user,XXX" instead?

A message like "FOO is deprecated" should always accompanied by advice
on preferred usage".  Example:

    $ qemu-img create -e
    qemu-img: option -e is deprecated, please use '-o encryption' instead!

Nice and helpful (apart from the uncalled-for exclamation mark).




More information about the Avocado-devel mailing list