Blame SOURCES/0080-Manage-do-not-check-array-state-when-drive-is-remove.patch

01ff50
From b3e7b7eb1dfedd7cbd9a3800e884941f67d94c96 Mon Sep 17 00:00:00 2001
01ff50
From: Kinga Tanska <kinga.tanska@intel.com>
01ff50
Date: Tue, 27 Dec 2022 06:50:42 +0100
01ff50
Subject: [PATCH 80/83] Manage: do not check array state when drive is removed
01ff50
01ff50
Array state doesn't need to be checked when drive is
01ff50
removed, but until now clean state was required. Result
01ff50
of the is_remove_safe() function will be independent
01ff50
from array state.
01ff50
01ff50
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
01ff50
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
01ff50
---
01ff50
 Manage.c | 3 +--
01ff50
 1 file changed, 1 insertion(+), 2 deletions(-)
01ff50
01ff50
diff --git a/Manage.c b/Manage.c
01ff50
index 594e3d2c..4d6e54b1 100644
01ff50
--- a/Manage.c
01ff50
+++ b/Manage.c
01ff50
@@ -1321,8 +1321,7 @@ bool is_remove_safe(mdu_array_info_t *array, const int fd, char *devname, const
01ff50
 	sysfs_free(mdi);
01ff50
 
01ff50
 	bool is_enough = enough(array->level, array->raid_disks,
01ff50
-				array->layout, (array->state & 1),
01ff50
-				avail);
01ff50
+				array->layout, 1, avail);
01ff50
 
01ff50
 	free(avail);
01ff50
 	return is_enough;
01ff50
-- 
01ff50
2.38.1
01ff50