summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/Makefile.am8
-rw-r--r--daemon/gluster-blockd.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index faacb67..a44158a 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -2,12 +2,12 @@ sbin_PROGRAMS = gluster-blockd
gluster_blockd_SOURCES = gluster-blockd.c
-gluster_blockd_CFLAGS = -DDATADIR=\"$(localstatedir)\" \
- -I$(top_srcdir)/utils/ -I$(top_srcdir)/rpc \
- -I$(top_builddir)/rpc/rpcl
+gluster_blockd_CFLAGS = $(GFAPI_CFLAGS) -DDATADIR=\"$(localstatedir)\" \
+ -I$(top_srcdir)/utils/ -I$(top_srcdir)/rpc \
+ -I$(top_builddir)/rpc/rpcl
gluster_blockd_LDADD = $(PTHREAD) $(top_builddir)/rpc/libgbrpc.la \
- $(top_builddir)/utils/libgb.la
+ $(top_builddir)/utils/libgb.la
DISTCLEANFILES = Makefile.in
diff --git a/daemon/gluster-blockd.c b/daemon/gluster-blockd.c
index 6a86c42..0f06a70 100644
--- a/daemon/gluster-blockd.c
+++ b/daemon/gluster-blockd.c
@@ -16,6 +16,7 @@
# include <rpc/pmap_clnt.h>
# include "common.h"
+# include "lru.h"
# include "block.h"
# include "block_svc.h"
@@ -206,6 +207,8 @@ main (int argc, char **argv)
exit(errnosv);
}
+ initCache();
+
/* set signal */
signal(SIGPIPE, SIG_IGN);