From: Eric Blake <eblake@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
pkrempa@redhat.com, qemu-block@nongnu.org,
Markus Armbruster <armbru@redhat.com>,
rjones@redhat.com, Max Reitz <mreitz@redhat.com>
Subject: Re: [PATCH 3/3] nbd: Add 'qemu-nbd -A' to expose allocation depth
Date: Mon, 28 Sep 2020 09:35:43 -0500 [thread overview]
Message-ID: <5908bfab-f9ab-bbb9-5a47-85c38c1040e5@redhat.com> (raw)
In-Reply-To: <ee868912-173e-328d-5138-b1e19a0ca2b1@virtuozzo.com>
On 9/26/20 8:32 AM, Vladimir Sementsov-Ogievskiy wrote:
> 25.09.2020 23:32, Eric Blake wrote:
>> Allow the server to expose an additional metacontext to be requested
>> by savvy clients. qemu-nbd adds a new option -A to expose the
>> qemu:allocation-depth metacontext through NBD_CMD_BLOCK_STATUS; this
>> can also be set via QMP when using nbd-server-add.
>>
>> qemu as client can be hacked into viewing this new context by using
>> the now-misnamed x-dirty-bitmap option when creating an NBD blockdev;
>
> may be rename it to x-block-status ?
I thought about it. We don't promise any back-compat with x- prefix,
but at the same time, if there's not a strong reason to change it,
scripts written against older qemu will not break as long as we still
have the hack.
>
>> although it is worth noting the decoding of how such context
>> information will appear in 'qemu-img map --output=json':
>>
>> NBD_STATE_DEPTH_UNALLOC => "zero":false, "data":true
>> NBD_STATE_DEPTH_LOCAL => "zero":false, "data":false
>> NBD_STATE_DEPTH_BACKING => "zero":true, "data":true
>
> It wouldn't be so simple if we decide to export exact depth number..
It's still simple to do tri-state results if we separate the exact depth
number to bits 31-4, leaving bits 1-0 as the tri-state summary...
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
prev parent reply other threads:[~2020-09-28 14:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-25 20:32 [PATCH 0/3] Exposing backing-chain allocation over NBD Eric Blake
2020-09-25 20:32 ` [PATCH 1/3] nbd: Simplify meta-context parsing Eric Blake
2020-09-26 12:58 ` Vladimir Sementsov-Ogievskiy
2020-09-28 14:05 ` Eric Blake
2020-09-25 20:32 ` [PATCH 2/3] nbd: Add new qemu:allocation-depth metacontext Eric Blake
2020-09-26 7:33 ` Richard W.M. Jones
2020-09-26 13:19 ` Vladimir Sementsov-Ogievskiy
2020-09-28 14:33 ` Eric Blake
2020-09-28 16:17 ` Richard W.M. Jones
2020-09-26 13:15 ` Vladimir Sementsov-Ogievskiy
2020-09-25 20:32 ` [PATCH 3/3] nbd: Add 'qemu-nbd -A' to expose allocation depth Eric Blake
2020-09-26 7:34 ` Richard W.M. Jones
2020-09-26 13:32 ` Vladimir Sementsov-Ogievskiy
2020-09-28 14:35 ` Eric Blake [this message]
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=5908bfab-f9ab-bbb9-5a47-85c38c1040e5@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pkrempa@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).