doxygen $<
if MODULES
-.PHONY: ldiskfs-sources lustre-sources
+.PHONY: ldiskfs-sources
ldiskfs-sources:
if LDISKFS_ENABLED
$(MAKE) sources -C @LDISKFS_SUBDIR@ || exit $$?
endif
-lustre-sources:
- $(MAKE) sources -C lustre || exit $$?
-
if LINUX
all-am: modules
-modules: undef.h ldiskfs-sources lustre-sources
+modules: undef.h ldiskfs-sources
$(MAKE) CC="$(CC)" -C $(LINUX_OBJ) \
-f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \
LINUXINCLUDE='-I$$(srctree)/arch/$$(SRCARCH)/include -Iarch/$$(SRCARCH)/include/generated -Iinclude $$(if $$(KBUILD_SRC),-Iinclude2 -I$$(srctree)/include) -I$$(srctree)/arch/$$(SRCARCH)/include/uapi -Iarch/$$(SRCARCH)/include/generated/uapi -I$$(srctree)/include/uapi -Iinclude/generated/uapi -include $(CONFIG_INCLUDE)' \
DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS)
EXTRA_DIST = BUGS kernel_patches BUILDING
-
-sources: lustre_build_version
-
-all-recursive: lustre_build_version
-
-BUILD_VER_H=$(top_builddir)/lustre/include/lustre/lustre_build_version.h
-
-lustre_build_version:
- echo -n "#define BUILD_VERSION \"" > tmpver
- cat $(top_builddir)/LUSTRE-VERSION-FILE | tr -d '\n' | \
- sed -e 's/^LUSTRE_VERSION = //' >> tmpver
- echo "\"" >> tmpver
- cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \
- $(RM) tmpver tmpdiff || \
- mv -f tmpver $(BUILD_VER_H)
#include <lnet/lnetctl.h>
#include <lustre_debug.h>
#include <lprocfs_status.h>
-#include <lustre/lustre_build_version.h>
+#include <lustre_ver.h>
#include <libcfs/list.h>
#include <cl_object.h>
#ifdef HAVE_SERVER_SUPPORT
GOTO(out, err);
}
- case OBD_GET_VERSION:
- if (!data->ioc_inlbuf1) {
- CERROR("No buffer passed in ioctl\n");
- GOTO(out, err = -EINVAL);
- }
+ case OBD_GET_VERSION:
+ if (!data->ioc_inlbuf1) {
+ CERROR("No buffer passed in ioctl\n");
+ GOTO(out, err = -EINVAL);
+ }
- if (strlen(BUILD_VERSION) + 1 > data->ioc_inllen1) {
- CERROR("ioctl buffer too small to hold version\n");
- GOTO(out, err = -EINVAL);
- }
+ if (strlen(LUSTRE_VERSION_STRING) + 1 > data->ioc_inllen1) {
+ CERROR("ioctl buffer too small to hold version\n");
+ GOTO(out, err = -EINVAL);
+ }
- memcpy(data->ioc_bulk, BUILD_VERSION,
- strlen(BUILD_VERSION) + 1);
+ memcpy(data->ioc_bulk, LUSTRE_VERSION_STRING,
+ strlen(LUSTRE_VERSION_STRING) + 1);
err = obd_ioctl_popdata((void __user *)arg, data, len);
- if (err)
- err = -EFAULT;
- GOTO(out, err);
+ if (err)
+ err = -EFAULT;
+ GOTO(out, err);
case OBD_IOC_NAME2DEV: {
/* Resolve a device name. This does not change the
INIT_LIST_HEAD(&obd_stale_exports);
atomic_set(&obd_stale_export_num, 0);
- LCONSOLE_INFO("Lustre: Build Version: "BUILD_VERSION"\n");
+ LCONSOLE_INFO("Lustre: Build Version: "LUSTRE_VERSION_STRING"\n");
spin_lock_init(&obd_types_lock);
obd_zombie_impexp_init();
#include <lprocfs_status.h>
#include <lustre_ioctl.h>
#include <lustre_ver.h>
-#include <lustre/lustre_build_version.h>
int proc_version;
{
seq_printf(m, "lustre: %s\nkernel: %s\nbuild: %s\n",
LUSTRE_VERSION_STRING, "patchless_client",
- BUILD_VERSION);
+ LUSTRE_VERSION_STRING);
return 0;
}
LPROC_SEQ_FOPS_RO(obd_proc_version);