6 #define LUSTRE_PATCH 99
8 #define LUSTRE_VERSION_STRING "2.6.99"
10 #define OBD_OCD_VERSION(major, minor, patch, fix) \
11 (((major) << 24) + ((minor) << 16) + ((patch) << 8) + (fix))
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)
18 #define LUSTRE_VERSION_CODE \
19 OBD_OCD_VERSION(LUSTRE_MAJOR, LUSTRE_MINOR, LUSTRE_PATCH, LUSTRE_FIX)
22 * If lustre version of client and servers it connects to differs by more
23 * than this amount, client would issue a warning.
25 #define LUSTRE_VERSION_OFFSET_WARN OBD_OCD_VERSION(0, 4, 0, 0)