[libvirt] [PATCH] storage backend: Add RBD (RADOS Block Device) support

Daniel P. Berrange berrange at redhat.com
Mon May 21 11:00:14 UTC 2012


On Mon, May 14, 2012 at 11:06:42AM +0200, Wido den Hollander wrote:
> This patch adds support for a new storage backend with RBD support.
> 
> RBD is the RADOS Block Device and is part of the Ceph distributed storage system.
> 
> It comes in two flavours: Qemu-RBD and Kernel RBD, this storage backend only supports
> Qemu-RBD, thus limiting the use of this storage driver to Qemu only.
> 
> To function this backend relies on librbd and librados being present on the local system.
> 
> The backend also supports Cephx authentication for safe authentication with the Ceph cluster.
> 
> For storing credentials it uses the build-in secret mechanism of libvirt.
> 
> Signed-off-by: Wido den Hollander <wido at widodh.nl>
> ---
>  configure.ac                             |   20 ++
>  docs/drivers.html.in                     |    1 +
>  docs/schemas/storagepool.rng             |   78 ++++-
>  docs/storage.html.in                     |   72 ++++
>  include/libvirt/libvirt.h.in             |    1 +
>  libvirt.spec.in                          |   16 +
>  src/Makefile.am                          |    9 +
>  src/conf/storage_conf.c                  |  140 ++++++--
>  src/conf/storage_conf.h                  |   12 +
>  src/storage/storage_backend.c            |    6 +
>  src/storage/storage_backend_rbd.c        |  544 ++++++++++++++++++++++++++++++
>  src/storage/storage_backend_rbd.h        |   30 ++
>  tests/storagepoolxml2xmlin/pool-rbd.xml  |   11 +
>  tests/storagepoolxml2xmlout/pool-rbd.xml |   15 +
>  tools/virsh.c                            |    7 +
>  15 files changed, 917 insertions(+), 45 deletions(-)
>  create mode 100644 src/storage/storage_backend_rbd.c
>  create mode 100644 src/storage/storage_backend_rbd.h
>  create mode 100644 tests/storagepoolxml2xmlin/pool-rbd.xml
>  create mode 100644 tests/storagepoolxml2xmlout/pool-rbd.xml

ACK to this patch

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list