Skip to contentSkip to conversation

ceph/rbd block driver for qemu-kvm (v9)

PATCH In review Christian Brunner 2 participants 2 messages Dec 6, 2010 – Dec 8, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph/rbd block driver for qemu-kvm (v9)

This is a new version of the rbd driver. The only difference from v8 is a check for a recent librados version in configure. If the librados version is too old, rbd support will be disabled.

RBD is an block driver for the distributed file system Ceph
(http://ceph.newdream.net/). This driver uses librados (which is part of the Ceph server) for direct access to the Ceph object store and is running entirely in userspace (Yehuda also wrote a driver for the linux kernel, that can be used to access rbd volumes as a block device).

Regards,
Christian

---
 Makefile.objs     |    1 +
 block/rbd.c       | 1059 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 block/rbd_types.h |   71 ++++
 configure         |   52 +++
 4 files changed, 1183 insertions(+), 0 deletions(-)
 create mode 100644 block/rbd.c
 create mode 100644 block/rbd_types.h
Makefile.objs +1 -0
index 6ee077c..56a13c1 100644
@@ -19,6 +19,7 @@ block-nested-y += parallels.o nbd.o blkdebug.o
 block-nested-$(CONFIG_WIN32) += raw-win32.o
 block-nested-$(CONFIG_POSIX) += raw-posix.o
 block-nested-$(CONFIG_CURL) += curl.o
+block-nested-$(CONFIG_RBD) += rbd.o
 
 block-obj-y +=  $(addprefix block/, $(block-nested-y))
 
block/rbd.c new file +1059 -0

1,059 lines not on this page · raw message

block/rbd_types.h new file +71 -0

71 lines not on this page · raw message

configure +52 -0

88 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

Am 06.12.2010 20:53, schrieb Christian Brunner:

Quoted 11 lines

This is a new version of the rbd driver. The only difference from v8 is a check for a recent librados version in configure. If the librados version is too old, rbd support will be disabled.

RBD is an block driver for the distributed file system Ceph
(http://ceph.newdream.net/). This driver uses librados (which is part of the Ceph server) for direct access to the Ceph object store and is running entirely in userspace (Yehuda also wrote a driver for the linux kernel, that can be used to access rbd volumes as a block device).

Quoted 5 lines

Regards,
Christian

Thanks. I still haven't managed to actually test it, but I've applied this to the block branch now based on your testing and Stefan's review (and the fact that it doesn't break my build any more).

Kevin