summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-03-27 05:36:56 +0200
committerJes Sorensen <Jes.Sorensen@gmail.com>2017-03-28 20:30:49 +0200
commitfdd015696c2e2a6b234a92af564aea44b62e6a0d (patch)
treeca245c0cf8d1ae5a8669d796d9444d6667b4488a /mdadm.h
parentmdadm/Build:check the level parameter when build new array (diff)
downloadmdadm-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 5bcfb861..b855d242 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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);