Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1d2e03
)
Add kernel patch version checking
author
pschwan
<pschwan>
Wed, 6 Nov 2002 07:28:35 +0000
(07:28 +0000)
committer
pschwan
<pschwan>
Wed, 6 Nov 2002 07:28:35 +0000
(07:28 +0000)
lustre/obdclass/class_obd.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/class_obd.c
b/lustre/obdclass/class_obd.c
index
2569fb2
..
58d5ff7
100644
(file)
--- a/
lustre/obdclass/class_obd.c
+++ b/
lustre/obdclass/class_obd.c
@@
-749,6
+749,16
@@
static void __exit cleanup_obdclass(void)
EXIT;
}
+/* Check that we're building against the appropriate version of the Lustre
+ * kernel patch */
+#ifndef LUSTRE_KERNEL_VERSION
+# define LUSTRE_KERNEL_VERSION 1
+#endif
+
+#if (LUSTRE_KERNEL_VERSION != 1)
+# error Cannot continue: Your Lustre kernel patch is out of date
+#endif
+
MODULE_AUTHOR("Cluster File Systems, Inc. <info@clusterfs.com>");
MODULE_DESCRIPTION("Lustre Class Driver v1.0");
MODULE_LICENSE("GPL");