[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 4/4] block/rbd: Add blockdev-add support
From: |
Jeff Cody |
Subject: |
Re: [Qemu-block] [PATCH 4/4] block/rbd: Add blockdev-add support |
Date: |
Mon, 27 Feb 2017 10:27:15 -0500 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Mon, Feb 27, 2017 at 01:45:47PM +0000, Daniel P. Berrange wrote:
> On Mon, Feb 27, 2017 at 02:30:41AM -0500, Jeff Cody wrote:
> > Signed-off-by: Jeff Cody <address@hidden>
> > ---
> > qapi/block-core.json | 47 ++++++++++++++++++++++++++++++++++++++++++++---
> > 1 file changed, 44 insertions(+), 3 deletions(-)
> >
> > diff --git a/qapi/block-core.json b/qapi/block-core.json
> > index 5f82d35..08a1419 100644
> > --- a/qapi/block-core.json
> > +++ b/qapi/block-core.json
> > @@ -2111,6 +2111,7 @@
> > # @replication: Since 2.8
> > # @ssh: Since 2.8
> > # @iscsi: Since 2.9
> > +# @rbd: Since 2.9
> > #
> > # Since: 2.0
> > ##
> > @@ -2120,7 +2121,7 @@
> > 'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs',
> > 'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed',
> > 'quorum', 'raw', 'replication', 'ssh', 'vdi', 'vhdx', 'vmdk',
> > - 'vpc', 'vvfat' ] }
> > + 'vpc', 'vvfat', 'rbd' ] }
> >
> > ##
> > # @BlockdevOptionsFile:
> > @@ -2376,7 +2377,6 @@
> > 'path': 'str',
> > '*user': 'str' } }
> >
> > -
> > ##
> > # @BlkdebugEvent:
> > #
> > @@ -2666,6 +2666,47 @@
> > '*timeout': 'int' } }
> >
> > ##
> > +# @BlockdevOptionsRbd:
> > +#
> > +# @pool: Ceph pool name
> > +#
> > +# @image: Image name in the Ceph pool
> > +#
> > +# @conf: # optional path to Ceph configuration file. Values
> > +# in the configuration file will be overridden by
> > +# options specified via QAPI.
> > +#
> > +# @snapshot: #optional Ceph snapshot name
> > +#
> > +# @rbd-id: #optional Ceph id name
>
> BTW, I think I'd suggest 'user' or 'username' for this, since that is the more
> common terminology we seem to use for other block drivers
>
OK, I will go with 'user' instead of 'rbd-id'.
I think that fits with the usage terminology in rados_create()
documentation as well:
int rados_create(rados_t * cluster, const char *const id)
[...]
Parameters
* cluster: where to store the handle
* id: the user to connect as (i.e. admin, not client.admin)
-Jeff
Re: [Qemu-block] [PATCH 4/4] block/rbd: Add blockdev-add support, Daniel P. Berrange, 2017/02/27
- Re: [Qemu-block] [PATCH 4/4] block/rbd: Add blockdev-add support,
Jeff Cody <=
[Qemu-block] [PATCH 1/4] block/rbd: don't copy strings in qemu_rbd_next_tok(), Jeff Cody, 2017/02/27
[Qemu-block] [PATCH 2/4] block/rbd: code movement, Jeff Cody, 2017/02/27
[Qemu-block] [PATCH 3/4] block/rbd: parse all options via bdrv_parse_filename, Jeff Cody, 2017/02/27