All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: "Kevin Wolf" <kwolf@redhat.com>,
	"Vladimir Sementsov-Ogievskiy" <vsementsov@virtuozzo.com>,
	"Daniel Berrange" <berrange@redhat.com>,
	libvir-list@redhat.com, qemu-devel <qemu-devel@nongnu.org>,
	mdroth@linux.vnet.ibm.com, "Peter Krempa" <pkrempa@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Eric Blake" <eblake@redhat.com>,
	libguestfs@redhat.com
Subject: Re: [PATCH v4 5/5] block: Deprecate transaction type drive-backup
Date: Wed, 27 Oct 2021 07:22:59 +0200	[thread overview]
Message-ID: <87v91jca8c.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <CAFn=p-ZfdUO5hfxjqFLt_kUD24jvAbPURyJ6Cozvdq5SLb0YcA@mail.gmail.com> (John Snow's message of "Tue, 26 Oct 2021 16:54:34 -0400")

John Snow <jsnow@redhat.com> writes:

> On Mon, Oct 25, 2021 at 12:24 AM Markus Armbruster <armbru@redhat.com>
> wrote:
>
>> Several moons ago, Vladimir posted
>>
>>     Subject: [PATCH v2 3/3] qapi: deprecate drive-backup
>>     Date: Wed,  5 May 2021 16:58:03 +0300
>>     Message-Id: <20210505135803.67896-4-vsementsov@virtuozzo.com>
>>     https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg01394.html
>>
>> with this
>>
>>     TODO: We also need to deprecate drive-backup transaction action..
>>     But union members in QAPI doesn't support 'deprecated' feature. I tried
>>     to dig a bit, but failed :/ Markus, could you please help with it? At
>>     least by advice?
>>
>> This is one way to resolve it.  Sorry it took so long.
>>
>>
> I'll share the blame for not pushing back on the other series, but ...
>
>
>> John explored another way, namely adding feature flags to union
>> branches.  Could also be useful, say to add different features to
>> branches in multiple unions sharing the same tag enum.
>>
>>
> ... this way seems simpler for now, and I trust your intuition on what's
> easier to support as I don't have a solid grasp of the C interfaces at play
> for actually parsing the input. We can always revisit the other thing later
> if/when we need it.
>
>
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>>  qapi/transaction.json | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/qapi/transaction.json b/qapi/transaction.json
>> index d175b5f863..381a2df782 100644
>> --- a/qapi/transaction.json
>> +++ b/qapi/transaction.json
>> @@ -54,6 +54,10 @@
>>  # @blockdev-snapshot-sync: since 1.1
>>  # @drive-backup: Since 1.6
>>  #
>> +# Features:
>> +# @deprecated: Member @drive-backup is deprecated.  Use member
>> +#              @blockdev-backup instead.
>> +#
>>  # Since: 1.1
>>  ##
>>  { 'enum': 'TransactionActionKind',
>> @@ -62,7 +66,7 @@
>>              'block-dirty-bitmap-disable', 'block-dirty-bitmap-merge',
>>              'blockdev-backup', 'blockdev-snapshot',
>>              'blockdev-snapshot-internal-sync', 'blockdev-snapshot-sync',
>> -            'drive-backup' ] }
>> +            { 'name': 'drive-backup', 'features': [ 'deprecated' ] } ] }
>>
>>  ##
>>  # @AbortWrapper:
>> --
>> 2.31.1
>>
>>
> Seems pretty clean to me overall. What's the reason for wanting it to be
> RFC?

I believe it depends on the remainder of Vladimir's series.



  reply	other threads:[~2021-10-27  5:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25  4:24 [PATCH v4 0/5] qapi: Add feature flags to enum members Markus Armbruster
2021-10-25  4:24 ` [PATCH v4 1/5] qapi: Enable enum member introspection to show more than name Markus Armbruster
2021-10-26 20:44   ` John Snow
2021-10-25  4:24 ` [PATCH v4 2/5] qapi: Add feature flags to enum members Markus Armbruster
2021-10-26 20:48   ` John Snow
2021-10-25  4:24 ` [PATCH v4 3/5] qapi: Move compat policy from QObject to generic visitor Markus Armbruster
2021-10-26 20:50   ` John Snow
2021-10-25  4:24 ` [PATCH v4 4/5] qapi: Implement deprecated-input={reject, crash} for enum values Markus Armbruster
2021-10-25  4:24 ` [PATCH v4 5/5] block: Deprecate transaction type drive-backup Markus Armbruster
2021-10-25  4:34   ` Markus Armbruster
2021-10-26 20:54   ` John Snow
2021-10-27  5:22     ` Markus Armbruster [this message]
2021-11-03 13:38       ` Vladimir Sementsov-Ogievskiy
2021-11-03 13:40   ` Vladimir Sementsov-Ogievskiy
2021-11-04  5:49     ` Markus Armbruster
2021-11-09 17:11       ` Vladimir Sementsov-Ogievskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v91jca8c.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=libguestfs@redhat.com \
    --cc=libvir-list@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=pkrempa@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vsementsov@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.