dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

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

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