Skip to content
Snippets Groups Projects
Commit 2d954654 authored by tianzy's avatar tianzy
Browse files

Branch b1_6

fix lquota.ko fails to install with --disable-liblustre used
b=17620
i=johann
i=brian
parent 0b41127b
No related branches found
No related tags found
No related merge requests found
...@@ -58,11 +58,10 @@ if CLIENT ...@@ -58,11 +58,10 @@ if CLIENT
SUBDIRS += $(CLIENT_SUBDIRS) SUBDIRS += $(CLIENT_SUBDIRS)
endif endif
SUBDIRS += $(QUOTA_SUBDIRS)
# this needs to be after the client subdirs # this needs to be after the client subdirs
if LIBLUSTRE if LIBLUSTRE
if QUOTA_LIBLUSTRE
SUBDIRS += $(QUOTA_SUBDIRS)
endif
if !CLIENT if !CLIENT
SUBDIRS += $(CLIENT_SUBDIRS) SUBDIRS += $(CLIENT_SUBDIRS)
endif endif
......
...@@ -1535,25 +1535,9 @@ AC_DEFUN([LC_QUOTA_MODULE], ...@@ -1535,25 +1535,9 @@ AC_DEFUN([LC_QUOTA_MODULE],
fi fi
]) ])
#
# LC_CONFIG_QUOTA_LIBLUSTRE
#
# whether to enable quota support(liblustre)
#
AC_DEFUN([LC_CONFIG_QUOTA_LIBLUSTRE],
[enable_quota_liblustre='no'
if test x$enable_quota != xno; then
AC_MSG_CHECKING([if compile liblustre with quota])
enable_quota_liblustre='yes'
AC_DEFINE(HAVE_QUOTA_LIBLUSTRE_SUPPORT, 1, [Enable liblustre quota support])
AC_MSG_RESULT([yes])
fi
])
AC_DEFUN([LC_QUOTA], AC_DEFUN([LC_QUOTA],
[#check global [#check global
LC_CONFIG_QUOTA LC_CONFIG_QUOTA
LC_CONFIG_QUOTA_LIBLUSTRE
#check for utils #check for utils
AC_CHECK_HEADER(sys/quota.h, AC_CHECK_HEADER(sys/quota.h,
[AC_DEFINE(HAVE_SYS_QUOTA_H, 1, [Define to 1 if you have <sys/quota.h>.])], [AC_DEFINE(HAVE_SYS_QUOTA_H, 1, [Define to 1 if you have <sys/quota.h>.])],
...@@ -1757,7 +1741,6 @@ AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests) ...@@ -1757,7 +1741,6 @@ AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
AM_CONDITIONAL(CLIENT, test x$enable_client = xyes) AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
AM_CONDITIONAL(SERVER, test x$enable_server = xyes) AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
AM_CONDITIONAL(QUOTA, test x$enable_quota_module = xyes) AM_CONDITIONAL(QUOTA, test x$enable_quota_module = xyes)
AM_CONDITIONAL(QUOTA_LIBLUSTRE, test x$enable_quota_liblustre = xyes)
AM_CONDITIONAL(BLKID, test x$ac_cv_header_blkid_blkid_h = xyes) AM_CONDITIONAL(BLKID, test x$ac_cv_header_blkid_blkid_h = xyes)
AM_CONDITIONAL(EXT2FS_DEVEL, test x$ac_cv_header_ext2fs_ext2fs_h = xyes) AM_CONDITIONAL(EXT2FS_DEVEL, test x$ac_cv_header_ext2fs_ext2fs_h = xyes)
AM_CONDITIONAL(LIBPTHREAD, test x$enable_libpthread = xyes) AM_CONDITIONAL(LIBPTHREAD, test x$enable_libpthread = xyes)
......
...@@ -19,7 +19,7 @@ LUSTRE_LIBS = libllite.a \ ...@@ -19,7 +19,7 @@ LUSTRE_LIBS = libllite.a \
$(top_builddir)/lustre/obdclass/liblustreclass.a \ $(top_builddir)/lustre/obdclass/liblustreclass.a \
$(top_builddir)/lustre/lvfs/liblvfs.a $(top_builddir)/lustre/lvfs/liblvfs.a
if QUOTA_LIBLUSTRE if LIBLUSTRE
QUOTA_LIBS = $(top_builddir)/lustre/quota/libquota.a QUOTA_LIBS = $(top_builddir)/lustre/quota/libquota.a
endif endif
......
...@@ -77,14 +77,12 @@ void *inter_module_get(char *arg) ...@@ -77,14 +77,12 @@ void *inter_module_get(char *arg)
return ldlm_namespace_cleanup; return ldlm_namespace_cleanup;
else if (!strcmp(arg, "ldlm_replay_locks")) else if (!strcmp(arg, "ldlm_replay_locks"))
return ldlm_replay_locks; return ldlm_replay_locks;
#ifdef HAVE_QUOTA_LIBLUSTRE_SUPPORT
else if (!strcmp(arg, "osc_quota_interface")) else if (!strcmp(arg, "osc_quota_interface"))
return &osc_quota_interface; return &osc_quota_interface;
else if (!strcmp(arg, "mdc_quota_interface")) else if (!strcmp(arg, "mdc_quota_interface"))
return &mdc_quota_interface; return &mdc_quota_interface;
else if (!strcmp(arg, "lov_quota_interface")) else if (!strcmp(arg, "lov_quota_interface"))
return &lov_quota_interface; return &lov_quota_interface;
#endif
else else
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment