diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 1a637676a930..a79dd33d343d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -2247,7 +2247,14 @@ action_store(mddev_t *mddev, const char *page, size_t len) | |||
2247 | return -EBUSY; | 2247 | return -EBUSY; |
2248 | else if (cmd_match(page, "resync") || cmd_match(page, "recover")) | 2248 | else if (cmd_match(page, "resync") || cmd_match(page, "recover")) |
2249 | set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); | 2249 | set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); |
2250 | else { | 2250 | else if (cmd_match(page, "reshape")) { |
2251 | int err; | ||
2252 | if (mddev->pers->start_reshape == NULL) | ||
2253 | return -EINVAL; | ||
2254 | err = mddev->pers->start_reshape(mddev); | ||
2255 | if (err) | ||
2256 | return err; | ||
2257 | } else { | ||
2251 | if (cmd_match(page, "check")) | 2258 | if (cmd_match(page, "check")) |
2252 | set_bit(MD_RECOVERY_CHECK, &mddev->recovery); | 2259 | set_bit(MD_RECOVERY_CHECK, &mddev->recovery); |
2253 | else if (cmd_match(page, "repair")) | 2260 | else if (cmd_match(page, "repair")) |