Add support for gluster backing store
PATCH v2 1/1 Add support for gluster backing store
Gluster is a distributed file system (www.gluster.org). The backing store gives block access protocols such as iSCSI access to data within gluster.
Gluster data resides on volumes which are physically located on servers. A "LUN" is represented by a file within a volume. To specify which file to use:
--bstype=glfs
--backing-store="volume@hostname:filename"
Optionally, logs may be specified. See README.glfs
All I/Os are synchronous. This is based off the rdrw and rbd backend storage drivers.
Fix stylistic errors
--- Makefile | 1 + doc/README.glfs | 50 +++++ usr/Makefile | 7 + usr/bs_glfs.c | 558 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 616 insertions(+) create mode 100644 doc/README.glfs create mode 100644 usr/bs_glfs.c
Makefile +1 -0
@@ -12,6 +12,7 @@ export VERSION PREFIX # Export the feature switches so sub-make knows about them export ISCSI_RDMA export CEPH_RBD +export GLFS_BD .PHONY: all all: programs doc conf scripts
doc/README.glfs new file +50 -0
50 lines not on this page · raw message
usr/Makefile +7 -0
@@ -17,6 +17,10 @@ ifneq ($(CEPH_RBD),) MODULES += bs_rbd.so endif +ifneq ($(GLFS_BD),) +MODULES += bs_glfs.so +endif + ifneq ($(shell test -e /usr/include/sys/eventfd.h && test -e /usr/include/libaio.h && echo 1),) CFLAGS += -DUSE_EVENTFD TGTD_OBJS += bs_aio.o
@@ -88,6 +92,9 @@ tgtimg: $(TGTIMG_OBJS) bs_rbd.so: bs_rbd.c $(CC) -shared $(CFLAGS) bs_rbd.c -o bs_rbd.so -lrados -lrbd +bs_glfs.so: bs_glfs.c + $(CC) -I/usr/include/glusterfs/api -shared $(CFLAGS) bs_glfs.c -o bs_glfs.so -lgfapi + .PHONY: install install: $(PROGRAMS) $(MODULES) install -d -m 755 $(DESTDIR)$(sbindir)
usr/bs_glfs.c new file +558 -0
558 lines not on this page · raw message
Signature · 1 line
1.8.5.3
FUJITA Tomonori
AppliedQuoted 19 lines · On Fri, 14 Mar 2014 17:29:50 -0400 Dan Lambright <[email protected]> wrote:
Gluster is a distributed file system (www.gluster.org). The backing store gives block access protocols such as iSCSI access to data within gluster.
Gluster data resides on volumes which are physically located on servers. A "LUN" is represented by a file within a volume. To specify which file to use:
--bstype=glfs
--backing-store="volume@hostname:filename"Optionally, logs may be specified. See README.glfs
All I/Os are synchronous. This is based off the rdrw and rbd backend storage drivers.
Signed-off-by Dan Lambright <[email protected]>Fix stylistic errors
Quoted 8 lines
--- Makefile | 1 + doc/README.glfs | 50 +++++ usr/Makefile | 7 + usr/bs_glfs.c | 558 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 616 insertions(+) create mode 100644 doc/README.glfs create mode 100644 usr/bs_glfs.c
Applied, thanks a lot!