From: johann Date: Fri, 15 Jun 2007 13:43:44 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~1529 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=de93bb8f707c9cccf5f15f06a9443c7e70b7c8ba;p=fs%2Flustre-release.git Branch b1_6 b=12194 i=adilger i=scjody --- diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 040c6e3..b4f5bba 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -14,6 +14,12 @@ tbd Cluster File Systems, Inc. * 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 diff --git a/lustre/autoMakefile.am b/lustre/autoMakefile.am index 3e6e59b..53ae48a 100644 --- a/lustre/autoMakefile.am +++ b/lustre/autoMakefile.am @@ -53,7 +53,7 @@ sources: $(LDISKFS) lvfs-sources obdclass-sources lustre_build_version 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 diff --git a/lustre/obdclass/autoMakefile.am b/lustre/obdclass/autoMakefile.am index e0982ca..9aeee61 100644 --- a/lustre/obdclass/autoMakefile.am +++ b/lustre/obdclass/autoMakefile.am @@ -12,7 +12,7 @@ liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c 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 diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 1684e728..0b5cc50 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -39,9 +39,7 @@ #include #include #include -#ifdef __KERNEL__ -#include -#endif +#include #include #include "llog_internal.h" diff --git a/lustre/obdclass/darwin/darwin-sysctl.c b/lustre/obdclass/darwin/darwin-sysctl.c index b12156a..f953cf8 100644 --- a/lustre/obdclass/darwin/darwin-sysctl.c +++ b/lustre/obdclass/darwin/darwin-sysctl.c @@ -6,7 +6,7 @@ #include #include #include -#include +#include #define DEBUG_SUBSYSTEM S_CLASS diff --git a/lustre/obdclass/linux/linux-module.c b/lustre/obdclass/linux/linux-module.c index e8e3d1f..17fe1de 100644 --- a/lustre/obdclass/linux/linux-module.c +++ b/lustre/obdclass/linux/linux-module.c @@ -66,8 +66,8 @@ #include #include #include +#include #ifdef __KERNEL__ -#include #include int proc_version; diff --git a/lustre/scripts/version_tag.pl.in b/lustre/scripts/version_tag.pl.in index c252212..c341642 100644 --- a/lustre/scripts/version_tag.pl.in +++ b/lustre/scripts/version_tag.pl.in @@ -156,7 +156,12 @@ sub generate_ver($$$) $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"; diff --git a/lustre/utils/lustre_cfg.c b/lustre/utils/lustre_cfg.c index cc29553..5f4b5f4 100644 --- a/lustre/utils/lustre_cfg.c +++ b/lustre/utils/lustre_cfg.c @@ -40,7 +40,7 @@ #include #include /* for struct lov_stripe_md */ #include -#include +#include #include #include diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index fdd18cf..5b2b250 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -39,7 +39,7 @@ #include "obdctl.h" #include /* for struct lov_stripe_md */ -#include +#include #include #include