From: pschwan Date: Wed, 6 Nov 2002 07:28:35 +0000 (+0000) Subject: Add kernel patch version checking X-Git-Tag: 0.5.16~15 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=2d3e6aaec32c5d20786073a0565153ff98728e3a;p=fs%2Flustre-release.git Add kernel patch version checking --- diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 2569fb2..58d5ff7 100644 --- 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. "); MODULE_DESCRIPTION("Lustre Class Driver v1.0"); MODULE_LICENSE("GPL");