summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-10-04 13:57:48 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-10-04 14:07:22 +0200
commit6f227de0a17369d3d6667591241c49140d5239b2 (patch)
treec5c7fd493bd752b12509e85e26f757f6f6bd4f38
parentmd.man: update refference to raid5-ppl.rst (diff)
downloadmdadm-6f227de0a17369d3d6667591241c49140d5239b2.tar.xz
mdadm-6f227de0a17369d3d6667591241c49140d5239b2.zip
util: fix sys_hot_remove_disk()
Instead of "remove", "faulty" was called. Fixes: d95edceb362a ("sysfs: add function for writing to sysfs fd") Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 4dfe757d..7c5c5c8f 100644
--- a/util.c
+++ b/util.c
@@ -1855,8 +1855,8 @@ int hot_remove_disk(int mdfd, unsigned long dev, int force)
int sys_hot_remove_disk(int statefd, int force)
{
+ static const char val[] = "remove";
int cnt = force ? 500 : 5;
- static const char val[] = "faulty";
while (cnt--) {
int err = 0;