Commit | Line | Data |
---|---|---|
d7e09d03 PT |
1 | #ifndef _LUSTRE_VER_H_ |
2 | #define _LUSTRE_VER_H_ | |
d7e09d03 PT |
3 | |
4 | #define LUSTRE_MAJOR 2 | |
182ae52d | 5 | #define LUSTRE_MINOR 5 |
ccaeef6c | 6 | #define LUSTRE_PATCH 60 |
d7e09d03 | 7 | #define LUSTRE_FIX 0 |
182ae52d | 8 | #define LUSTRE_VERSION_STRING "2.5.99" |
d7e09d03 | 9 | |
00c0a6ae JH |
10 | #define OBD_OCD_VERSION(major, minor, patch, fix) \ |
11 | (((major) << 24) + ((minor) << 16) + ((patch) << 8) + (fix)) | |
12 | ||
13 | #define OBD_OCD_VERSION_MAJOR(version) ((int)((version) >> 24) & 255) | |
14 | #define OBD_OCD_VERSION_MINOR(version) ((int)((version) >> 16) & 255) | |
15 | #define OBD_OCD_VERSION_PATCH(version) ((int)((version) >> 8) & 255) | |
16 | #define OBD_OCD_VERSION_FIX(version) ((int)((version) >> 0) & 255) | |
17 | ||
18 | #define LUSTRE_VERSION_CODE \ | |
19 | OBD_OCD_VERSION(LUSTRE_MAJOR, LUSTRE_MINOR, LUSTRE_PATCH, LUSTRE_FIX) | |
d7e09d03 | 20 | |
59ca8f20 OD |
21 | /* |
22 | * If lustre version of client and servers it connects to differs by more | |
d7e09d03 | 23 | * than this amount, client would issue a warning. |
59ca8f20 | 24 | */ |
d7e09d03 PT |
25 | #define LUSTRE_VERSION_OFFSET_WARN OBD_OCD_VERSION(0, 4, 0, 0) |
26 | ||
27 | #endif |