From 2d3e6aaec32c5d20786073a0565153ff98728e3a Mon Sep 17 00:00:00 2001 From: pschwan Date: Wed, 6 Nov 2002 07:28:35 +0000 Subject: [PATCH] Add kernel patch version checking --- lustre/obdclass/class_obd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"); -- 1.8.3.1