dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/Assemble-Assemble-Stop-checking-kernel-md-driver-ver.patch

2c1b57
From 6142741d144824c31b733f9d6e6e240b159effc0 Mon Sep 17 00:00:00 2001
2c1b57
From: Jes Sorensen <Jes.Sorensen@gmail.com>
2c1b57
Date: Wed, 5 Apr 2017 15:09:18 -0400
2c1b57
Subject: [RHEL7.5 PATCH 054/169] Assemble/Assemble: Stop checking kernel
2c1b57
 md driver version
2c1b57
2c1b57
Any kernel released during the last decade will return 9003 from
2c1b57
md_get_version() so no point in checking that.
2c1b57
2c1b57
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
2c1b57
---
2c1b57
 Assemble.c | 3 +--
2c1b57
 1 file changed, 1 insertion(+), 2 deletions(-)
2c1b57
2c1b57
diff --git a/Assemble.c b/Assemble.c
2c1b57
index 672cd12..fa5fdbe 100644
2c1b57
--- a/Assemble.c
2c1b57
+++ b/Assemble.c
2c1b57
@@ -1477,8 +1477,7 @@ try_again:
2c1b57
 		return 1;
2c1b57
 	}
2c1b57
 	mddev = chosen_name;
2c1b57
-	if (get_linux_version() < 2004000 ||
2c1b57
-	    md_get_version(mdfd) < 9000) {
2c1b57
+	if (get_linux_version() < 2004000) {
2c1b57
 		pr_err("Assemble requires Linux 2.4 or later, and\n"
2c1b57
 		       "     md driver version 0.90.0 or later.\n"
2c1b57
 		       "    Upgrade your kernel or try --build\n");
2c1b57
-- 
2c1b57
2.7.4
2c1b57