summaryrefslogtreecommitdiff
path: root/debian/patches/0009-mdadm-grow-correct-size-and-chunk_size-casting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0009-mdadm-grow-correct-size-and-chunk_size-casting.patch')
-rw-r--r--debian/patches/0009-mdadm-grow-correct-size-and-chunk_size-casting.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/debian/patches/0009-mdadm-grow-correct-size-and-chunk_size-casting.patch b/debian/patches/0009-mdadm-grow-correct-size-and-chunk_size-casting.patch
deleted file mode 100644
index cdaed497..00000000
--- a/debian/patches/0009-mdadm-grow-correct-size-and-chunk_size-casting.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 5d518de84e7cd3382b4984cc1243ddb4102aa4f4 Mon Sep 17 00:00:00 2001
-From: Roman Sobanski <roman.sobanski@intel.com>
-Date: Fri, 27 Apr 2018 12:12:21 +0200
-Subject: [PATCH 09/40] mdadm/grow: correct size and chunk_size casting
-
-With commit 4b74a905a67e
-("mdadm/grow: Component size must be larger than chunk size") mdadm returns
-incorrect message if size given to grow was greater than 2 147 483 647 K.
-Cast chunk_size to "unsigned long long" instead of casting size to "int".
-
-Signed-off-by: Roman Sobanski <roman.sobanski@intel.com>
-Signed-off-by: Jes Sorensen <jsorensen@fb.com>
----
- Grow.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Grow.c b/Grow.c
-index 87229692..a4be7e7b 100644
---- a/Grow.c
-+++ b/Grow.c
-@@ -1821,7 +1821,7 @@ int Grow_reshape(char *devname, int fd,
- }
-
- if (array.level > 1 && s->size > 1 &&
-- (array.chunk_size / 1024) > (int)s->size) {
-+ (unsigned long long) (array.chunk_size / 1024) > s->size) {
- pr_err("component size must be larger than chunk size.\n");
- return 1;
- }
---
-2.17.1
-