Whamcloud - gitweb
Add kernel patch version checking
authorpschwan <pschwan>
Wed, 6 Nov 2002 07:28:35 +0000 (07:28 +0000)
committerpschwan <pschwan>
Wed, 6 Nov 2002 07:28:35 +0000 (07:28 +0000)
lustre/obdclass/class_obd.c

index 2569fb2..58d5ff7 100644 (file)
@@ -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");