diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-10-04 13:57:48 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-10-04 14:07:22 +0200 |
commit | 6f227de0a17369d3d6667591241c49140d5239b2 (patch) | |
tree | c5c7fd493bd752b12509e85e26f757f6f6bd4f38 /util.c | |
parent | md.man: update refference to raid5-ppl.rst (diff) | |
download | mdadm-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>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |