summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/Makefile
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-02-18 23:16:19 +0000
committerpjd <pjd@FreeBSD.org>2010-02-18 23:16:19 +0000
commit1c1e2e8b7128696797c328aefd45f618c64ba613 (patch)
treeb457b029c3a2e668bca4294dab77cfceeba7dcbd /sbin/hastd/Makefile
parenta448fe30c9ff8f38fe6cc08b23bf069aabb7438c (diff)
downloadFreeBSD-src-1c1e2e8b7128696797c328aefd45f618c64ba613.zip
FreeBSD-src-1c1e2e8b7128696797c328aefd45f618c64ba613.tar.gz
Please welcome HAST - Highly Avalable Storage.
HAST allows to transparently store data on two physically separated machines connected over the TCP/IP network. HAST works in Primary-Secondary (Master-Backup, Master-Slave) configuration, which means that only one of the cluster nodes can be active at any given time. Only Primary node is able to handle I/O requests to HAST-managed devices. Currently HAST is limited to two cluster nodes in total. HAST operates on block level - it provides disk-like devices in /dev/hast/ directory for use by file systems and/or applications. Working on block level makes it transparent for file systems and applications. There in no difference between using HAST-provided device and raw disk, partition, etc. All of them are just regular GEOM providers in FreeBSD. For more information please consult hastd(8), hastctl(8) and hast.conf(5) manual pages, as well as http://wiki.FreeBSD.org/HAST. Sponsored by: FreeBSD Foundation Sponsored by: OMCnet Internet Service GmbH Sponsored by: TransIP BV
Diffstat (limited to 'sbin/hastd/Makefile')
-rw-r--r--sbin/hastd/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile
new file mode 100644
index 0000000..16a0b8f
--- /dev/null
+++ b/sbin/hastd/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+PROG= hastd
+SRCS= activemap.c
+SRCS+= control.c
+SRCS+= ebuf.c
+SRCS+= hast_proto.c hastd.c hooks.c
+SRCS+= metadata.c
+SRCS+= nv.c
+SRCS+= secondary.c
+SRCS+= parse.y pjdlog.c primary.c
+SRCS+= proto.c proto_common.c proto_socketpair.c proto_tcp4.c proto_uds.c
+SRCS+= rangelock.c
+SRCS+= subr.c
+SRCS+= token.l
+SRCS+= y.tab.h
+WARNS?= 6
+MAN= hastd.8 hast.conf.5
+
+CFLAGS+=-I${.CURDIR}
+CFLAGS+=-DINET
+.if ${MK_INET6_SUPPORT} != "no"
+CFLAGS+=-DINET6
+.endif
+# This is needed to have WARNS > 1.
+CFLAGS+=-DYY_NO_UNPUT
+
+DPADD= ${LIBCRYPTO} ${LIBGEOM} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
+LDADD= -lcrypto -lgeom -ll -lpthread -lutil
+
+YFLAGS+=-v
+
+CLEANFILES=y.tab.c y.tab.h y.output
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud