Skip to contentSkip to conversation

HLFS driver for QEMU

PATCH New [email protected] 1 participant 1 message Mar 18, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HLFS driver for QEMU

From: Harry Wei <[email protected]>

HLFS is HDFS-based(Hadoop Distributed File System) Log-Structured File System. Actually, HLFS, currently, is not a FS but a block-storage system, which we simplify LFS to fit block-level storage. So you could also call HLFS as HLBS (HDFS-based Log-Structured Block-storage System). HLFS has two mode, which are local mode and HDFS mode. HDFS is once write and many read so HLFS realize LBS(Log-Structured Block-storage System) to achieve reading and writing randomly. LBS is based on LFS's basic theories but is different from LFS, which LBS fits block storage better. See
http://code.google.com/p/cloudxy/wiki/WHAT_IS_CLOUDXY
about HLFS in details.

Currently, HLFS support following features:

1, Portions of POSIX --- Just realize some interfaces VM image need. 2, Randomly Read/Write.
3, Large file storage (TB).
4, Support snapshots(Linear snapshots and tree snapshots), Clone, Block compression, Cache, etc.
5, A copy of the data more.
6, Cluster system can dynamic expand.
...

---
 block/Makefile.objs |    2 +-
 block/hlfs.c        |  515 +++++++++++++++++++++++++++++++++++++++++++++++++++
 configure           |   51 +++++
 3 files changed, 567 insertions(+), 1 deletion(-)
 create mode 100644 block/hlfs.c
block/Makefile.objs +1 -1
index c067f38..723c7a5 100644
@@ -8,7 +8,7 @@ block-obj-$(CONFIG_POSIX) += raw-posix.o
 block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
 
 ifeq ($(CONFIG_POSIX),y)
-block-obj-y += nbd.o sheepdog.o
+block-obj-y += nbd.o sheepdog.o hlfs.o
 block-obj-$(CONFIG_LIBISCSI) += iscsi.o
 block-obj-$(CONFIG_CURL) += curl.o
 block-obj-$(CONFIG_RBD) += rbd.o
block/hlfs.c new file +514 -0

514 lines not on this page · raw message

+ if (log4c_init()) {
+ g_message("log4c_init error!");
+ }
+ bdrv_register(&bdrv_hlbs);
+}
+block_init(bdrv_hlbs_init);

configure +51 -0

87 lines not on this page · raw message

Signature · 1 line
1.7.9.5