33 lines
902 B
Diff
33 lines
902 B
Diff
From 5b30a34aa4b5ea7a8202314c1d737ec4a481c127 Mon Sep 17 00:00:00 2001
|
|
From: Mateusz Grzonka <mateusz.grzonka@intel.com>
|
|
Date: Thu, 15 Jul 2021 12:25:23 +0200
|
|
Subject: [PATCH 15/15] Add error handling for chunk size in RAID1
|
|
|
|
Print error if chunk size is set as it is not supported.
|
|
|
|
Signed-off-by: Mateusz Grzonka <mateusz.grzonka@intel.com>
|
|
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
---
|
|
Create.c | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/Create.c b/Create.c
|
|
index 18b5e64..f5d57f8 100644
|
|
--- a/Create.c
|
|
+++ b/Create.c
|
|
@@ -254,9 +254,8 @@ int Create(struct supertype *st, char *mddev,
|
|
case LEVEL_MULTIPATH:
|
|
case LEVEL_CONTAINER:
|
|
if (s->chunk) {
|
|
- s->chunk = 0;
|
|
- if (c->verbose > 0)
|
|
- pr_err("chunk size ignored for this level\n");
|
|
+ pr_err("specifying chunk size is forbidden for this level\n");
|
|
+ return 1;
|
|
}
|
|
break;
|
|
default:
|
|
--
|
|
2.7.5
|
|
|