* Note that reiserfs quotas are disabled on SLES 10 in this kernel.
* bug fixes
+Severity : enhancement
+Bugzilla : 12194
+Description: add optional extra BUILD_VERSION info
+Details : add a new environment variable (namely LUSTRE_VERS) which allows
+ to override the lustre version.
+
Severity : normal
Frequency : 2.6.18 servers only
Bugzilla : 12546
all-recursive: lustre_build_version
-BUILD_VER_H=$(top_builddir)/lustre/include/linux/lustre_build_version.h
+BUILD_VER_H=$(top_builddir)/lustre/include/lustre/lustre_build_version.h
lustre_build_version:
perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c
liblustreclass_a_SOURCES += llog_lvfs.c llog_swab.c
liblustreclass_a_SOURCES += prng.c #llog_ioctl.c rbtree.c
-liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -DLUSTRE_VERSION=\"32\" -DBUILD_VERSION=\"1\"
+liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS)
liblustreclass_a_CFLAGS = $(LLCFLAGS)
endif
#include <obd_class.h>
#include <lustre_debug.h>
#include <lprocfs_status.h>
-#ifdef __KERNEL__
-#include <linux/lustre_build_version.h>
-#endif
+#include <lustre/lustre_build_version.h>
#include <libcfs/list.h>
#include "llog_internal.h"
#include <sys/proc.h>
#include <sys/unistd.h>
#include <mach/mach_types.h>
-#include <linux/lustre_build_version.h>
+#include <lustre/lustre_build_version.h>
#define DEBUG_SUBSYSTEM S_CLASS
#include <obd_class.h>
#include <lprocfs_status.h>
#include <lustre_ver.h>
+#include <lustre/lustre_build_version.h>
#ifdef __KERNEL__
-#include <linux/lustre_build_version.h>
#include <linux/lustre_version.h>
int proc_version;
$hour, $min, $sec);
print "#define BUILD_VERSION \"";
- if ($pristine) {
+
+ my $lustre_vers = $ENV{LUSTRE_VERS};
+
+ if ($lustre_vers) {
+ print "$tag-$lustre_vers\"\n";
+ } elsif ($pristine) {
print "$tag-$show_last-PRISTINE-$linuxdir-$kernver\"\n";
} else {
print "$tag-$show_last-CHANGED-$linuxdir-$kernver\"\n";
#include <lustre_dlm.h>
#include <obd.h> /* for struct lov_stripe_md */
#include <obd_lov.h>
-#include <linux/lustre_build_version.h>
+#include <lustre/lustre_build_version.h>
#include <unistd.h>
#include <sys/un.h>
#include "obdctl.h"
#include <obd.h> /* for struct lov_stripe_md */
-#include <linux/lustre_build_version.h>
+#include <lustre/lustre_build_version.h>
#include <unistd.h>
#include <sys/un.h>