All of lore.kernel.org
 help / color / mirror / Atom feed
From: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu devel <qemu-devel@nongnu.org>,
	qemu block <qemu-block@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Eric Blake <eblake@redhat.com>,
	qemu trival <qemu-trivial@nongnu.org>,
	zhanghailiang <zhang.zhanghailiang@huawei.com>
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] docs/block-replication.txt: Introduce nbd qmp commands
Date: Mon, 7 Nov 2016 16:07:41 +0800	[thread overview]
Message-ID: <5820364D.8080000@cn.fujitsu.com> (raw)
In-Reply-To: <87fun320fa.fsf@dusky.pond.sub.org>

On 11/07/2016 03:50 PM, Markus Armbruster wrote:
> Changlong Xie <xiecl.fnst@cn.fujitsu.com> writes:
>
>> Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
>> ---
>>   docs/block-replication.txt | 22 +++++++++++++++++-----
>>   1 file changed, 17 insertions(+), 5 deletions(-)
>>
>> diff --git a/docs/block-replication.txt b/docs/block-replication.txt
>> index 6bde673..6b9c77b 100644
>> --- a/docs/block-replication.txt
>> +++ b/docs/block-replication.txt
>> @@ -152,9 +152,22 @@ Primary:
>>            children.0.driver=raw
>>
>>     Run qmp command in primary qemu:
>> -    { 'execute': 'human-monitor-command',
>> +    { 'execute': 'blockdev-add',
>>         'arguments': {
>> -          'command-line': 'drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=xxxx,file.port=xxxx,file.export=colo1,node-name=nbd_client1'
>> +          'driver': 'replication',
>> +          'node-name': 'nbd_client1',
>> +          'mode': 'primary',
>> +          'file': {
>> +              'driver': 'nbd',
>> +              'export': 'colo1',
>> +              'server': {
>> +                  'type': 'inet',
>> +                  'data': {
>> +                      'host': 'xxxx',
>> +                      'port': 'xxxx'
>> +                  }
>> +              }
>> +          }
>>         }
>>       }
>>       { 'execute': 'x-blockdev-change',
>> @@ -223,12 +236,11 @@ Primary:
>>           'child': 'children.1'
>>       }
>>     }
>> -  { 'execute': 'human-monitor-command',
>> +  { 'execute': 'x-blockdev-del',
>>       'arguments': {
>> -        'command-line': 'drive_del xxxx'
>> +        'node-name': 'nbd_client1'
>>       }
>>     }
>> -  Note: there is no qmp command to remove the blockdev now
>>
>>   Secondary:
>>     The primary host is down, so we should do the following thing:
>
> This is premature: both blockdev-add and x-blockdev-del still aren't
> ready for production.  Getting close, though.

Sound nice : ), so let this patch pending here.

Thanks
	-Xie
>
>
> .
>




WARNING: multiple messages have this Message-ID (diff)
From: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu devel <qemu-devel@nongnu.org>,
	qemu block <qemu-block@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Eric Blake <eblake@redhat.com>,
	qemu trival <qemu-trivial@nongnu.org>,
	zhanghailiang <zhang.zhanghailiang@huawei.com>
Subject: Re: [Qemu-devel] [PATCH] docs/block-replication.txt: Introduce nbd qmp commands
Date: Mon, 7 Nov 2016 16:07:41 +0800	[thread overview]
Message-ID: <5820364D.8080000@cn.fujitsu.com> (raw)
In-Reply-To: <87fun320fa.fsf@dusky.pond.sub.org>

On 11/07/2016 03:50 PM, Markus Armbruster wrote:
> Changlong Xie <xiecl.fnst@cn.fujitsu.com> writes:
>
>> Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
>> ---
>>   docs/block-replication.txt | 22 +++++++++++++++++-----
>>   1 file changed, 17 insertions(+), 5 deletions(-)
>>
>> diff --git a/docs/block-replication.txt b/docs/block-replication.txt
>> index 6bde673..6b9c77b 100644
>> --- a/docs/block-replication.txt
>> +++ b/docs/block-replication.txt
>> @@ -152,9 +152,22 @@ Primary:
>>            children.0.driver=raw
>>
>>     Run qmp command in primary qemu:
>> -    { 'execute': 'human-monitor-command',
>> +    { 'execute': 'blockdev-add',
>>         'arguments': {
>> -          'command-line': 'drive_add -n buddy driver=replication,mode=primary,file.driver=nbd,file.host=xxxx,file.port=xxxx,file.export=colo1,node-name=nbd_client1'
>> +          'driver': 'replication',
>> +          'node-name': 'nbd_client1',
>> +          'mode': 'primary',
>> +          'file': {
>> +              'driver': 'nbd',
>> +              'export': 'colo1',
>> +              'server': {
>> +                  'type': 'inet',
>> +                  'data': {
>> +                      'host': 'xxxx',
>> +                      'port': 'xxxx'
>> +                  }
>> +              }
>> +          }
>>         }
>>       }
>>       { 'execute': 'x-blockdev-change',
>> @@ -223,12 +236,11 @@ Primary:
>>           'child': 'children.1'
>>       }
>>     }
>> -  { 'execute': 'human-monitor-command',
>> +  { 'execute': 'x-blockdev-del',
>>       'arguments': {
>> -        'command-line': 'drive_del xxxx'
>> +        'node-name': 'nbd_client1'
>>       }
>>     }
>> -  Note: there is no qmp command to remove the blockdev now
>>
>>   Secondary:
>>     The primary host is down, so we should do the following thing:
>
> This is premature: both blockdev-add and x-blockdev-del still aren't
> ready for production.  Getting close, though.

Sound nice : ), so let this patch pending here.

Thanks
	-Xie
>
>
> .
>

  reply	other threads:[~2016-11-07  7:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07  3:48 [Qemu-trivial] [PATCH] docs/block-replication.txt: Introduce nbd qmp commands Changlong Xie
2016-11-07  3:48 ` [Qemu-devel] " Changlong Xie
2016-11-07  7:50 ` [Qemu-trivial] " Markus Armbruster
2016-11-07  7:50   ` Markus Armbruster
2016-11-07  8:07   ` Changlong Xie [this message]
2016-11-07  8:07     ` Changlong Xie

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=5820364D.8080000@cn.fujitsu.com \
    --to=xiecl.fnst@cn.fujitsu.com \
    --cc=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=zhang.zhanghailiang@huawei.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.