dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/Grow-Stop-bothering-about-md-driver-versions-older-t.patch

b7f731
From 6ae8b2b3140475b1a70485052454210aba4065a6 Mon Sep 17 00:00:00 2001
b7f731
From: Jes Sorensen <Jes.Sorensen@gmail.com>
b7f731
Date: Wed, 5 Apr 2017 15:22:36 -0400
b7f731
Subject: [RHEL7.5 PATCH 056/169] Grow: Stop bothering about md driver
b7f731
 versions older than 0.90.00
b7f731
b7f731
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
b7f731
---
b7f731
 Grow.c | 7 -------
b7f731
 1 file changed, 7 deletions(-)
b7f731
b7f731
diff --git a/Grow.c b/Grow.c
b7f731
index 78a3474..15f4ed1 100755
b7f731
--- a/Grow.c
b7f731
+++ b/Grow.c
b7f731
@@ -288,16 +288,9 @@ int Grow_addbitmap(char *devname, int fd, struct context *c, struct shape *s)
b7f731
 	struct supertype *st;
b7f731
 	char *subarray = NULL;
b7f731
 	int major = BITMAP_MAJOR_HI;
b7f731
-	int vers = md_get_version(fd);
b7f731
 	unsigned long long bitmapsize, array_size;
b7f731
 	struct mdinfo *mdi;
b7f731
 
b7f731
-	if (vers < 9003) {
b7f731
-		major = BITMAP_MAJOR_HOSTENDIAN;
b7f731
-		pr_err("Warning - bitmaps created on this kernel are not portable\n"
b7f731
-			"  between different architectures.  Consider upgrading the Linux kernel.\n");
b7f731
-	}
b7f731
-
b7f731
 	/*
b7f731
 	 * We only ever get called if s->bitmap_file is != NULL, so this check
b7f731
 	 * is just here to quiet down static code checkers.
b7f731
-- 
b7f731
2.7.4
b7f731