if test x$enable_iokit != xyes ; then
RPMBINARGS="$RPMBINARGS --without lustre_iokit"
fi
-if test x$USE_DLC = xyes ; then
- RPMBINARGS="$RPMBINARGS --with lnet_dlc"
-fi
if test x$enable_snmp != xyes ; then
RPMBINARGS="$RPMBINARGS --without snmp"
fi
debian/tmp/usr/include/lustre/* usr/include/lustre
-debian/tmp/usr/lib/*.so usr/lib
+debian/tmp/usr/lib/*.so* usr/lib
debian/tmp/usr/lib/*.a usr/lib
#
# LN_CONFIG_DLC
#
-# Configure dlc if enabled
+# Configure dlc
#
-# if libyaml is set (IE libyaml installed) and enable_dlc = yes then build
-# dlc other wise (IE if libyaml is not set or enable_dlc = no) then don't
-# build dlc.
+# fail to build if libyaml is not installed
#
AC_DEFUN([LN_CONFIG_DLC], [
- AC_CHECK_LIB([yaml], [yaml_parser_initialize],[
- LIBYAML="libyaml"],[
- LIBYAML=""],[-lm])
- AC_MSG_CHECKING([whether to enable dlc])
- AC_ARG_ENABLE([dlc],
- AC_HELP_STRING([--disable-dlc],
- [disable building dlc]),
- [], [enable_dlc="yes"])
- USE_DLC=""
- AS_IF([test "x$enable_dlc" = xyes],
- [AS_IF([test "x$LIBYAML" = xlibyaml], [
- USE_DLC="yes"
- AC_MSG_RESULT([yes])
- ], [
- AC_MSG_RESULT([no (libyaml not present)])
- ])
- ], [
- AC_MSG_RESULT([no])
- ])
- AC_SUBST(USE_DLC)
+ AC_CHECK_LIB([yaml], [yaml_parser_initialize],
+ [LIBYAML="libyaml"],
+ [AC_MSG_ERROR([YAML development libraries not not installed])],
+ [-lm])
])
#
AC_DEFUN([LN_CONDITIONALS], [
AM_CONDITIONAL(BUILD_O2IBLND, test x$O2IBLND = "xo2iblnd")
AM_CONDITIONAL(BUILD_GNILND, test x$GNILND = "xgnilnd")
-AM_CONDITIONAL(BUILD_DLC, test x$USE_DLC = "xyes")
]) # LN_CONDITIONALS
#
AM_CFLAGS := -fPIC -D_GNU_SOURCE
AM_LDFLAGS := -L.
-if BUILD_DLC
SUBDIRS = lnetconfig
-endif # BUILD_DLC
LIBCFS= $(top_builddir)/libcfs/libcfs/libcfs.a
if UTILS
-sbin_PROGRAMS = routerstat lst
-
-if BUILD_DLC
-sbin_PROGRAMS += lnetctl
-endif # BUILD_DLC
+sbin_PROGRAMS = routerstat lst lnetctl
routerstat_SOURCES = routerstat.c
routerstat_LDADD = $(LIBCFS)
lst_SOURCES = lst.c
lst_LDADD = $(LIBCFS) $(LIBREADLINE) $(LIBEFENCE)
-if BUILD_DLC
lst_LDADD += $(top_builddir)/lnet/utils/lnetconfig/liblnetconfig.la
-endif
if TESTS
sbin_PROGRAMS += wirecheck
#include <linux/lnet/lnetctl.h>
#include <linux/lnet/lnetst.h>
#include <linux/lnet/nidstr.h>
-#ifdef USE_DLC
#include "lnetconfig/liblnetconfig.h"
-#endif
struct lst_sid LST_INVALID_SID = { .ses_nid = LNET_NID_ANY, .ses_stamp = -1 };
static struct lst_sid session_id;
rc = lst_initialize();
if (rc < 0)
goto errorout;
-#ifdef USE_DLC
+
rc = lustre_lnet_config_lib_init();
-#else
- rc = register_ioc_dev(LNET_DEV_ID, LNET_DEV_PATH);
-#endif
if (rc < 0)
goto errorout;
%bcond_without lustre_utils
%bcond_without lustre_iokit
%bcond_without lustre_modules
-%bcond_with lnet_dlc
%bcond_with snmp
%bcond_without manpages
%bcond_without shared
%{!?with_ldiskfs:--disable-ldiskfs} \
%{!?with_servers:--disable-server} \
%{!?with_zfs:--without-zfs} \
- %{!?with_lnet_dlc:--disable-dlc} \
%{!?with_snmp:--disable-snmp} \
%{!?with_manpages:--disable-manpages} \
%{!?with_systemd:--with-systemdsystemunitdir=no} \
# fc18 needs 'x' permission for library files
find $RPM_BUILD_ROOT -name \*.so -type f -exec chmod +x {} \;
-%if %{with lnet_dlc}
rm -f $RPM_BUILD_ROOT%{_libdir}/liblnetconfig.la
%if %{with static}
echo '%attr(-, root, root) %{_libdir}/liblnetconfig.a' >>lustre.files
echo '%attr(-, root, root) %{_libdir}/liblnetconfig.so' >>lustre.files
echo '%attr(-, root, root) %{_libdir}/liblnetconfig.so.*' >>lustre.files
%endif
-%endif
%if %{with ldiskfs}
echo '%{_libdir}/libiam.a' >>lustre.files
%endif
%{_sysconfdir}/udev/rules.d/99-lustre.rules
%config(noreplace) %{_sysconfdir}/ldev.conf
-%if %{with lnet_dlc}
%config(noreplace) %{_sysconfdir}/lnet.conf
-%endif
%config(noreplace) %{_sysconfdir}/modprobe.d/ko2iblnd.conf
%if %{with lustre_utils}
%config(noreplace) %{_sysconfdir}/lnet_routes.conf
endif
endif
-if BUILD_DLC
sysconf_DATA += lnet.conf
-endif
modprobedir = $(sysconfdir)/modprobe.d
modprobe_DATA = ko2iblnd.conf
CLEANFILES = $(genscripts)
$(genscripts): %: %.in
-if BUILD_DLC
sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
- -e 's,@scriptlibdir\@,$(scriptlibdir),g' \
- -e 's,@BUILD_DLC_TRUE\@,,g' \
- -e 's,@BUILD_DLC_FALSE\@,\#,g' $< > $@
-else
- sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
- -e 's,@scriptlibdir\@,$(scriptlibdir),g' \
- -e 's,@BUILD_DLC_TRUE\@,\#,g' \
- -e 's,@BUILD_DLC_FALSE\@,,g' $< > $@
-endif
+ -e 's,@scriptlibdir\@,$(scriptlibdir),g' $< > $@
chmod +x $@
run_preexec_check "start"
touch /var/lock/subsys/lnet
modprobe lnet || exit 1
- @BUILD_DLC_TRUE@lnetctl lnet configure || exit 1
- @BUILD_DLC_TRUE@lnetctl import < "@sysconfdir@/lnet.conf"
- @BUILD_DLC_FALSE@lctl network up || exit 1
- @BUILD_DLC_FALSE@lustre_routes_config "@sysconfdir@/lnet_routes.conf"
+ lnetctl lnet configure || exit 1
+ lnetctl import < "@sysconfdir@/lnet.conf"
run_postexec_check "start"
;;
stop)
run_preexec_check "stop"
lustre_rmmod ptlrpc || exit 1
- @BUILD_DLC_TRUE@lnetctl lnet unconfigure || exit 1
- @BUILD_DLC_FALSE@lctl network down || exit 1
+ lnetctl lnet unconfigure || exit 1
lustre_rmmod libcfs ldiskfs || exit 1
rm -f /var/lock/subsys/lnet
run_postexec_check "stop"
CLEANFILES = $(genunitfiles)
$(genunitfiles): %: %.in
-if BUILD_DLC
sed -e 's,@sbindir\@,$(sbindir),g' \
- -e 's,@sysconfdir\@,$(sysconfdir),g' \
- -e 's,@BUILD_DLC_TRUE\@,,g' \
- -e 's,@BUILD_DLC_FALSE\@,\#,g' $< > $@
-else
- sed -e 's,@sbindir\@,$(sbindir),g' \
- -e 's,@sysconfdir\@,$(sysconfdir),g' \
- -e 's,@BUILD_DLC_TRUE\@,\#,g' \
- -e 's,@BUILD_DLC_FALSE\@,,g' $< > $@
-endif
+ -e 's,@sysconfdir\@,$(sysconfdir),g' $< > $@
Type=oneshot
RemainAfterExit=true
ExecStart=@sbindir@/modprobe lnet
-@BUILD_DLC_FALSE@ExecStart=@sbindir@/lctl network up
-@BUILD_DLC_FALSE@ExecStart=@sbindir@/lustre_routes_config @sysconfdir@/lnet_routes.conf
-@BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl lnet configure
-@BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl import @sysconfdir@/lnet.conf
+ExecStart=@sbindir@/lnetctl lnet configure
+ExecStart=@sbindir@/lnetctl import @sysconfdir@/lnet.conf
ExecStop=@sbindir@/lustre_rmmod ptlrpc
-@BUILD_DLC_FALSE@ExecStop=@sbindir@/lctl network down
-@BUILD_DLC_TRUE@ExecStop=@sbindir@/lnetctl lnet unconfigure
+ExecStop=@sbindir@/lnetctl lnet unconfigure
ExecStop=@sbindir@/lustre_rmmod libcfs ldiskfs
[Install]