|
|
b33395 |
From 5c3c3df646dd3b7e8df81152f08e9ac4ddccc671 Mon Sep 17 00:00:00 2001
|
|
|
b33395 |
From: Kinga Tanska <kinga.tanska@intel.com>
|
|
|
b33395 |
Date: Fri, 19 Aug 2022 02:55:46 +0200
|
|
|
2ad819 |
Subject: [PATCH 52/83] Assemble: check if device is container before
|
|
|
b33395 |
scheduling force-clean update
|
|
|
b33395 |
|
|
|
b33395 |
Up to now using assemble with force flag making each array as clean.
|
|
|
b33395 |
Force-clean should not be done for the container. This commit add
|
|
|
b33395 |
check if device is different than container before cleaning.
|
|
|
b33395 |
|
|
|
b33395 |
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
|
|
|
b33395 |
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
|
b33395 |
---
|
|
|
b33395 |
Assemble.c | 5 ++---
|
|
|
b33395 |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
b33395 |
|
|
|
b33395 |
diff --git a/Assemble.c b/Assemble.c
|
|
|
b33395 |
index be2160b4..1dd82a8c 100644
|
|
|
b33395 |
--- a/Assemble.c
|
|
|
b33395 |
+++ b/Assemble.c
|
|
|
b33395 |
@@ -1809,10 +1809,9 @@ try_again:
|
|
|
b33395 |
}
|
|
|
b33395 |
#endif
|
|
|
b33395 |
}
|
|
|
b33395 |
- if (c->force && !clean &&
|
|
|
b33395 |
+ if (c->force && !clean && content->array.level != LEVEL_CONTAINER &&
|
|
|
b33395 |
!enough(content->array.level, content->array.raid_disks,
|
|
|
b33395 |
- content->array.layout, clean,
|
|
|
b33395 |
- avail)) {
|
|
|
b33395 |
+ content->array.layout, clean, avail)) {
|
|
|
b33395 |
change += st->ss->update_super(st, content, "force-array",
|
|
|
b33395 |
devices[chosen_drive].devname, c->verbose,
|
|
|
b33395 |
0, NULL);
|
|
|
b33395 |
--
|
|
|
2ad819 |
2.38.1
|
|
|
b33395 |
|