commit | 2910ff17d154baa5eb50e362a91104e831eb2bb6 | [log] [tgz] |
---|---|---|
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | Mon Sep 28 10:27:26 2015 -0500 |
committer | Goldwyn Rodrigues <rgoldwyn@suse.com> | Mon Oct 12 01:33:58 2015 -0500 |
tree | 746036180b2192079ee7451764437e144f7a3b04 | |
parent | b8ca846e45197a2de829def27254f833a998723e [diff] |
md: remove_and_add_spares() to activate specific rdev remove_and_add_spares() checks for all devices to activate spare. Change it to activate a specific device if a non-null rdev argument is passed. remove_and_add_spares() can be used to activate spares in slot_store() as well. For hot_remove_disk(), check if rdev->raid_disk == -1 before calling remove_and_add_spares() Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>