diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2015-04-14 10:44:44 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-04-22 07:59:39 +1000 |
commit | 88bcfef7be513e8bf5448e0025330fdd97c4c708 (patch) | |
tree | 68cb889fecc9ab303a798bf9b43130701bb34460 /drivers/md/md-cluster.h | |
parent | 57d051dccaef395e0d8c0fff02cfc3a77bacc88c (diff) | |
download | linux-88bcfef7be513e8bf5448e0025330fdd97c4c708.tar.gz linux-88bcfef7be513e8bf5448e0025330fdd97c4c708.tar.bz2 linux-88bcfef7be513e8bf5448e0025330fdd97c4c708.zip |
md-cluster: remove capabilities
This adds "remove" capabilities for the clustered environment.
When a user initiates removal of a device from the array, a
REMOVE message with disk number in the array is sent to all
the nodes which kick the respective device in their own array.
This facilitates the removal of failed devices.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md-cluster.h')
-rw-r--r-- | drivers/md/md-cluster.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md-cluster.h b/drivers/md/md-cluster.h index 7417133c4295..71e51432c1f4 100644 --- a/drivers/md/md-cluster.h +++ b/drivers/md/md-cluster.h @@ -22,6 +22,7 @@ struct md_cluster_operations { int (*add_new_disk_start)(struct mddev *mddev, struct md_rdev *rdev); int (*add_new_disk_finish)(struct mddev *mddev); int (*new_disk_ack)(struct mddev *mddev, bool ack); + int (*remove_disk)(struct mddev *mddev, struct md_rdev *rdev); }; #endif /* _MD_CLUSTER_H */ |