Whamcloud - gitweb
1553f68e76ec5975a7d4448273378e8b8a7867d9
[fs/lustre-release.git] / lustre / include / lustre_ver.h.in
1 #ifndef _LUSTRE_VER_H_
2 #define _LUSTRE_VER_H_
3 /* This file automatically generated from lustre/include/lustre_ver.h.in,
4  * based on parameters in lustre/autoconf/lustre-version.ac.
5  * Changes made directly to this file will be lost. */
6
7 #define LUSTRE_MAJOR @AC_LUSTRE_MAJOR@
8 #define LUSTRE_MINOR @AC_LUSTRE_MINOR@
9 #define LUSTRE_PATCH @AC_LUSTRE_PATCH@
10 #define LUSTRE_FIX @AC_LUSTRE_FIX@
11 #define LUSTRE_VERSION_STRING "@AC_LUSTRE_VERSION_STRING@"
12 #define CLIENT_URN "@AC_LUSTRE_CLIENT_URN@"
13 #define MDS_URN "@AC_LUSTRE_MDS_URN@"
14 #define MGS_URN "@AC_LUSTRE_MGS_URN@"
15 #define OSS_URN "@AC_LUSTRE_OSS_URN@"
16
17 #define LUSTRE_VERSION_CODE OBD_OCD_VERSION(LUSTRE_MAJOR,LUSTRE_MINOR,LUSTRE_PATCH,LUSTRE_FIX)
18
19 /* liblustre clients are only allowed to connect if their LUSTRE_FIX mismatches
20  * by this amount (set in lustre/autoconf/lustre-version.ac). */
21 #define LUSTRE_VERSION_ALLOWED_OFFSET @AC_LUSTRE_VER_ALLOWED_OFFSET@
22
23 #ifdef __KERNEL__
24 /* If lustre version of client and servers it connects to differs by more
25  * than this amount, client would issue a warning.
26  * (set in lustre/autoconf/lustre-version.ac) */
27 #define LUSTRE_VERSION_OFFSET_WARN @AC_LUSTRE_CLI_VER_OFFSET_WARN@
28 #else
29 /* If liblustre version of client and servers it connects to differs by more
30  * than this amount, client would issue a warning.
31  * (set in lustre/autoconf/lustre-version.ac) */
32 #define LUSTRE_VERSION_OFFSET_WARN @AC_LUSTRE_LIB_VER_OFFSET_WARN@
33 #endif
34
35 #endif