From: Jes Sorensen Date: Thu, 6 Apr 2017 19:46:31 +0000 (-0400) Subject: mdadm: Fail for kernels older than 2.6.15 X-Git-Tag: mdadm-4.1-rc1~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcf3d4de95d1a4cbc65b24a844173ba1c1300b55;p=thirdparty%2Fmdadm.git mdadm: Fail for kernels older than 2.6.15 With the removal of old kernel API support, mdadm will no longer run on kernels older than 2.6.15. Signed-off-by: Jes Sorensen --- diff --git a/mdadm.c b/mdadm.c index 3fe17fc0..001ff684 100644 --- a/mdadm.c +++ b/mdadm.c @@ -120,6 +120,11 @@ int main(int argc, char *argv[]) ident.container = NULL; ident.member = NULL; + if (get_linux_version() < 2006015) { + pr_err("This version of mdadm does not support kernels older than 2.6.15\n"); + exit(1); + } + while ((option_index = -1), (opt = getopt_long(argc, argv, shortopt, long_options, &option_index)) != -1) {