- drop import inflight refcount on signal_completed_replay error (5255)
* miscellania
- add pid to ldlm debugging output (4922)
+ - add --disable-server and --disable-client configure options (5786)
2004-10-08 Cluster File Systems, Inc. <info@clusterfs.com>
* version 1.3.3
subdir-m += ptlrpc
subdir-m += obdecho
subdir-m += osc
-subdir-m += mdc
-subdir-m += mds
-subdir-m += obdfilter
-subdir-m += ost
-subdir-m += llite
subdir-m += cobd
-subdir-m += smfs
subdir-m += cmobd
-
+
+@SERVER_TRUE@subdir-m += smfs mds obdfilter ost
+@CLIENT_TRUE@subdir-m += mdc llite
ifeq ($(PATCHLEVEL),4)
subdir-m += ptlbd
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = include ldiskfs lvfs obdclass lov ldlm sec ptlrpc \
- obdecho osc mdc lmv mds obdfilter ost llite cobd ptlbd smfs snapfs \
- cmobd liblustre doc utils tests conf scripts autoconf
+ALWAYS_SUBDIRS := include lvfs obdclass lov ldlm sec ptlrpc \
+ obdecho osc lmv cobd ptlbd cmobd doc utils tests conf scripts \
+ autoconf
+
+SERVER_SUBDIRS := ldiskfs smfs snapfs obdfilter ost mds
+
+CLIENT_SUBDIRS := mdc llite
+
+LIBLUSTRE_SUBDIRS := liblustre
+
+SUBDIRS := $(ALWAYS_SUBDIRS)
+
+if SERVER
+SUBDIRS += $(SERVER_SUBDIRS)
+endif
+
+if CLIENT
+SUBDIRS += $(CLIENT_SUBDIRS)
+endif
+
+if LIBLUSTRE
+if !CLIENT
+SUBDIRS += $(CLIENT_SUBDIRS)
+endif
+SUBDIRS += $(LIBLUSTRE_SUBDIRS)
+endif
+
+DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \
+ $(LIBLUSTRE_SUBDIRS)
EXTRA_DIST = BUGS FDL Rules.in kernel_patches
# Lustre linux kernel checks
#
AC_DEFUN([LC_PROG_LINUX],
-[LC_CONFIG_BACKINGFS
+[if test x$enable_server = xyes ; then
+ LC_CONFIG_BACKINGFS
+fi
LC_CONFIG_PINGER
LC_CONFIG_GSS
LC_CONFIG_SNAPFS
])
#
+# LC_CONFIG_CLIENT_SERVER
+#
+# Build client/server sides of Lustre
+#
+AC_DEFUN([LC_CONFIG_CLIENT_SERVER],
+[AC_MSG_CHECKING([whether to build Lustre server support])
+AC_ARG_ENABLE([server],
+ AC_HELP_STRING([--disable-server],
+ [disable Lustre server support]),
+ [],[enable_server='yes'])
+AC_MSG_RESULT([$enable_server])
+
+AC_MSG_CHECKING([whether to build Lustre client support])
+AC_ARG_ENABLE([client],
+ AC_HELP_STRING([--disable-client],
+ [disable Lustre client support]),
+ [],[enable_client='yes'])
+AC_MSG_RESULT([$enable_client])])
+
+#
# LC_CONFIG_LIBLUSTRE
#
# whether to build liblustre
AM_CONDITIONAL(LIBLUSTRE, test x$enable_liblustre = xyes)
AM_CONDITIONAL(LIBLUSTRE_TESTS, test x$enable_liblustre_tests = xyes)
AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
+AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
+AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
])
#
# See the file COPYING in this distribution
if MODULES
+if CLIENT
modulefs_DATA = llite$(KMODEXT)
endif
+endif
DIST_SOURCES := $(llite-objs:.o=.c) llite_internal.h rw24.c super.c rw26.c super25.c
MOSTLYCLEANFILES = *.o *.ko *.mod.c
-MODULES := lvfs fsfilt_@BACKINGFS@ fsfilt_smfs
+MODULES := lvfs
+@SERVER_TRUE@MODULES += fsfilt_@BACKINGFS@ fsfilt_smfs
@SNAPFS_TRUE@MODULES += fsfilt_snap_@BACKINGFS@ fsfilt_snap_smfs
if MODULES
-modulefs_DATA = lvfs$(KMODEXT) fsfilt_$(BACKINGFS)$(KMODEXT) fsfilt_smfs$(KMODEXT)
+modulefs_DATA := lvfs$(KMODEXT)
+
+if SERVER
+modulefs_DATA += fsfilt_$(BACKINGFS)$(KMODEXT) fsfilt_smfs$(KMODEXT)
sources: fsfilt_$(BACKINGFS).c fsfilt_smfs.c fsfilt_snap_$(BACKINGFS).c
touch sources
+else
+sources:
+
+endif
fsfilt_extN.c: fsfilt_ext3.c
sed -e "s/EXT3/EXTN/g" -e "s/ext3/extN/g" $< > $@
endif
if MODULES
+if CLIENT
modulefs_DATA = mdc$(KMODEXT)
endif
+endif
DIST_SOURCES = $(mdc-objs:.o=.c) mdc_internal.h
MOSTLYCLEANFILES = *.o *.ko *.mod.c