diff options
author | NeilBrown <neilb@suse.com> | 2017-03-27 05:36:56 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-28 20:30:49 +0200 |
commit | fdd015696c2e2a6b234a92af564aea44b62e6a0d (patch) | |
tree | ca245c0cf8d1ae5a8669d796d9444d6667b4488a /mdadm.h | |
parent | mdadm/Build:check the level parameter when build new array (diff) | |
download | mdadm-fdd015696c2e2a6b234a92af564aea44b62e6a0d.tar.xz mdadm-fdd015696c2e2a6b234a92af564aea44b62e6a0d.zip |
Introduce sys_hot_remove_disk()
The new hot_remove_disk() will retry HOT_REMOVE_DISK
several times in the face of EBUSY.
However we sometimes remove a device by writing "remove" to the
"state" attributed. This should be retried as well.
So introduce sys_hot_remove_disk() to repeat this action a few times.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1477,6 +1477,7 @@ extern int add_disk(int mdfd, struct supertype *st, extern int remove_disk(int mdfd, struct supertype *st, struct mdinfo *sra, struct mdinfo *info); extern int hot_remove_disk(int mdfd, unsigned long dev); +extern int sys_hot_remove_disk(int statefd); extern int set_array_info(int mdfd, struct supertype *st, struct mdinfo *info); unsigned long long min_recovery_start(struct mdinfo *array); |