Re: [PATCH 0/3] bs_rbd: add backing-store driver for Ceph rbd images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 13 Feb 2013 18:42:24 -0800
Dan Mick <dan.mick@xxxxxxxxxxx> wrote:

> [Resubmitting with a new README for more context]
> 
> The 'rbd' backing-store driver provides access to Ceph (http://ceph.com)
> 'RADOS block devices (rbd)" through tgtd.
> 
> Ceph is a distributed storage system that provides clustered redundant
> object storage; one of the ways to use such storage is through the
> abstraction of a "block device".  See README.rbd for more details.
> 
> Dan Mick (3):
>   Add support for Ceph rbd backing store
>   Add documentation for rbd backend
>   Add README.rbd to explain/document usage with Ceph rbd backing
>     storage.
> 
>  doc/README.rbd   |   26 +++
>  doc/tgtadm.8.xml |    6 +-
>  usr/Makefile     |    2 +
>  usr/bs.c         |    3 +
>  usr/bs_rbd.c     |  536 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  usr/bs_rdwr.c    |    2 -
>  usr/bs_thread.h  |    2 +-
>  7 files changed, 572 insertions(+), 5 deletions(-)
>  create mode 100644 doc/README.rbd
>  create mode 100644 usr/bs_rbd.c

Applied, thanks.

I've also applied the following:

=
>From 3ad675b39cd153239600c8fd328db4206163b177 Mon Sep 17 00:00:00 2001
From: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
Date: Sun, 17 Feb 2013 11:02:50 +0900
Subject: [PATCH] make Ceph rbd support optional

I guess that there are lots of people who doesn't install ceph library
so (including me). So this patch makes the rbd support optional (like
iSER).

To enable Ceph rbd support, compile tgtd with:

    make CEPH_RBD=1

Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
---
 Makefile     |    1 +
 usr/Makefile |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 43ace67..4ae5850 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ export VERSION PREFIX
 
 # Export the feature switches so sub-make knows about them
 export ISCSI_RDMA
+export CEPH_RBD
 
 .PHONY: all
 all: programs doc conf scripts
diff --git a/usr/Makefile b/usr/Makefile
index e257791..453eb1a 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -12,8 +12,11 @@ TGTD_OBJS += $(addprefix iscsi/, conn.o param.o session.o \
 		iscsid.o target.o chap.o sha1.o md5.o transport.o iscsi_tcp.o \
 		isns.o)
 TGTD_OBJS += bs_rdwr.o
+
+ifneq ($(CEPH_RBD),)
 TGTD_OBJS += bs_rbd.o
 LIBS += -lrados -lrbd
+endif
 
 ifneq ($(shell test -e /usr/include/sys/eventfd.h && test -e /usr/include/libaio.h && echo 1),)
 CFLAGS += -DUSE_EVENTFD
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux