Skip to contentSkip to conversation

Distributed storage maintenance release.

PATCH Evgeniy Polyakov 1 participant 1 message Sep 24, 2008

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

Hi.

I am pleased to announce new distributed storage (DST) project release. This is a maintenance only release.

DST is a block layer network device, which among others has following features:

* Kernel-side client and server. No need for any special tools for data processing (like special userspace applications) except for configuration.
* Bullet-proof memory allocations via memory pools for all temporary objects (transaction and so on).
* Zero-copy sending (except header) if supported by device using sendpage().
* Failover recovery in case of broken link
(reconnection if remote node is down).
* Full transaction support (resending of the failed transactions on timeout of after reconnect to failed node).
* Dynamically resizeable pool of threads used for data receiving and crypto processing.
* Initial autoconfiguration. Ability to extend it with additional attributes if needed.
* Support for any kind of network media (not limited to tcp or inet protocols) higher MAC layer (socket layer). Out of the box kernel-side IPv6 support (needs to extend configuration utility, check how it was done in POHMELFS [1]).
* Security attributes for local export nodes (list of allowed to connect addresses with permissions).
* Ability to use any supported cryptographically strong checksums. Ability to encrypt data channel.

This release brings following changes:
* Use idr to manage minor numbers. Now create/remove/create sequence does not produce new minor, but uses previous one, which is now freed.
* Added cache name to the node. It is possible to have freed node still being alive while we register new node with the same name, so its cache name should be different.
* Wait during node removal until there are no pending transaction, so node would be freed in process context and not in the receiving threads itself.
* Warn user if there is no security permission config file during export node initialization. No client will be allowed to connect without explicit security association.
* Tune default size of the page pool for crypto processing a bit.

I want to thank Remy Ritchen (remy.ritchen_gmail.com) for his excellent tests and analysis.

One can grab sources (various configuration examples can be found in 'userspace' dir) from archive, or via kernel and userspace GIT trees.

1. POHMELFS homepage.
http://tservice.net.ru/~s0mbre/old/?section=projects&item=pohmelfs

2. DST homepage.
http://tservice.net.ru/~s0mbre/old/?section=projects&item=dst

3. DST archive.
http://tservice.net.ru/~s0mbre/archive/dst/

4. DST git trees.
http://tservice.net.ru/~s0mbre/archive/dst/dst.git/
http://tservice.net.ru/~s0mbre/archive/dst/dst-userspace.git/

5. GIT web interface.
http://tservice.net.ru/~s0mbre/cgi-bin/gitweb.cgi

drivers/block/Kconfig +2 -0
index 0d1d213..56a64fe 100644
@@ -433,4 +433,6 @@ config VIRTIO_BLK
 	  This is the virtual block driver for virtio.  It can be used with
           lguest or QEMU based VMMs (like KVM or Xen).  Say Y or M.
 
+source "drivers/block/dst/Kconfig"
+
 endif # BLK_DEV
drivers/block/Makefile +2 -0
index 5e58430..26bcf8a 100644
@@ -31,3 +31,5 @@ obj-$(CONFIG_BLK_DEV_SX8)	+= sx8.o
 obj-$(CONFIG_BLK_DEV_UB)	+= ub.o
 
 obj-$(CONFIG_XEN_BLKDEV_FRONTEND)	+= xen-blkfront.o
+
+obj-$(CONFIG_DST)	+= dst/
drivers/block/dst/Kconfig new file +14 -0
new file mode 100644
index 0000000..2f42f98
@@ -0,0 +1,14 @@
+config DST
+	tristate "Distributed storage"
+	depends on NET
+	select CONNECTOR
+	select LIBCRC32C
+	---help---
+	This driver allows to create a distributed storage block device.
+
+config DST_DEBUG
+	bool "DST debug"
+	depends on DST
+	---help---
+	This option will turn HEAVY debugging of the DST.
+	Turn it on ONLY if you have to debug some really obscure problem.
drivers/block/dst/Makefile new file +3 -0
new file mode 100644
index 0000000..526fc62
@@ -0,0 +1,3 @@
+obj-$(CONFIG_DST) += dst.o
+
+dst-y := dcore.o state.o export.o thread_pool.o crypto.o trans.o
drivers/block/dst/crypto.c new file +680 -0

680 lines not on this page · raw message

drivers/block/dst/dcore.c new file +876 -0

876 lines not on this page · raw message

drivers/block/dst/export.c new file +591 -0

591 lines not on this page · raw message

drivers/block/dst/state.c new file +757 -0

757 lines not on this page · raw message

drivers/block/dst/thread_pool.c new file +306 -0

68 lines not on this page · raw message

drivers/block/dst/trans.c new file +306 -0

306 lines not on this page · raw message

include/linux/connector.h +3 -1
index 96a89d3..cfc5ce7 100644

Lines of this file are not shown. View the raw message.

include/linux/dst.h new file +435 -0

435 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
	Evgeniy Polyakov

Part of the diff is not shown here. View the raw message.