X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_ver.h.in;h=b61567ca92eb067edc4158c921ff5bf895c4ac05;hb=ad1810a2dbea1eed5e8b5feb55bdf915a545feb3;hp=1553f68e76ec5975a7d4448273378e8b8a7867d9;hpb=14765d2816bafa2a08879ece0e33bf8c97f84948;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_ver.h.in b/lustre/include/lustre_ver.h.in index 1553f68..b61567c 100644 --- a/lustre/include/lustre_ver.h.in +++ b/lustre/include/lustre_ver.h.in @@ -9,12 +9,17 @@ #define LUSTRE_PATCH @AC_LUSTRE_PATCH@ #define LUSTRE_FIX @AC_LUSTRE_FIX@ #define LUSTRE_VERSION_STRING "@AC_LUSTRE_VERSION_STRING@" -#define CLIENT_URN "@AC_LUSTRE_CLIENT_URN@" -#define MDS_URN "@AC_LUSTRE_MDS_URN@" -#define MGS_URN "@AC_LUSTRE_MGS_URN@" -#define OSS_URN "@AC_LUSTRE_OSS_URN@" -#define LUSTRE_VERSION_CODE OBD_OCD_VERSION(LUSTRE_MAJOR,LUSTRE_MINOR,LUSTRE_PATCH,LUSTRE_FIX) +#define OBD_OCD_VERSION(major, minor, patch, fix) \ + (((major) << 24) + ((minor) << 16) + ((patch) << 8) + (fix)) + +#define OBD_OCD_VERSION_MAJOR(version) ((int)((version) >> 24) & 255) +#define OBD_OCD_VERSION_MINOR(version) ((int)((version) >> 16) & 255) +#define OBD_OCD_VERSION_PATCH(version) ((int)((version) >> 8) & 255) +#define OBD_OCD_VERSION_FIX(version) ((int)((version) >> 0) & 255) + +#define LUSTRE_VERSION_CODE \ + OBD_OCD_VERSION(LUSTRE_MAJOR, LUSTRE_MINOR, LUSTRE_PATCH, LUSTRE_FIX) /* liblustre clients are only allowed to connect if their LUSTRE_FIX mismatches * by this amount (set in lustre/autoconf/lustre-version.ac). */