]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: Stop bothering about md driver versions older than 0.90.00
authorJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 5 Apr 2017 19:22:36 +0000 (15:22 -0400)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 5 Apr 2017 19:29:29 +0000 (15:29 -0400)
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Grow.c

diff --git a/Grow.c b/Grow.c
index 78a34746f9f397f7a4900fcc45b084b5c088e519..15f4ed1253bf05813e119c7242453e4eaa52f429 100755 (executable)
--- a/Grow.c
+++ b/Grow.c
@@ -288,16 +288,9 @@ int Grow_addbitmap(char *devname, int fd, struct context *c, struct shape *s)
        struct supertype *st;
        char *subarray = NULL;
        int major = BITMAP_MAJOR_HI;
-       int vers = md_get_version(fd);
        unsigned long long bitmapsize, array_size;
        struct mdinfo *mdi;
 
-       if (vers < 9003) {
-               major = BITMAP_MAJOR_HOSTENDIAN;
-               pr_err("Warning - bitmaps created on this kernel are not portable\n"
-                       "  between different architectures.  Consider upgrading the Linux kernel.\n");
-       }
-
        /*
         * We only ever get called if s->bitmap_file is != NULL, so this check
         * is just here to quiet down static code checkers.