diff options
author | NeilBrown <neilb@suse.de> | 2006-03-27 04:18:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 11:45:02 -0500 |
commit | 63c70c4f3a30e77e6f445bd16eff7934a031ebd3 (patch) | |
tree | 12d2cd6cec5cd304bdf514ec8999a44c26f058ae /include/linux/raid | |
parent | b578d55fdd80140f657130abd85aebeb345755fb (diff) |
[PATCH] md: Split reshape handler in check_reshape and start_reshape
check_reshape checks validity and does things that can be done instantly -
like adding devices to raid1. start_reshape initiates a restriping process to
convert the whole array.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid')
-rw-r--r-- | include/linux/raid/md_k.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index 1a6f9f2f6282..002ee631fabb 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -261,7 +261,8 @@ struct mdk_personality | |||
261 | int (*spare_active) (mddev_t *mddev); | 261 | int (*spare_active) (mddev_t *mddev); |
262 | sector_t (*sync_request)(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster); | 262 | sector_t (*sync_request)(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster); |
263 | int (*resize) (mddev_t *mddev, sector_t sectors); | 263 | int (*resize) (mddev_t *mddev, sector_t sectors); |
264 | int (*reshape) (mddev_t *mddev, int raid_disks); | 264 | int (*check_reshape) (mddev_t *mddev); |
265 | int (*start_reshape) (mddev_t *mddev); | ||
265 | int (*reconfig) (mddev_t *mddev, int layout, int chunk_size); | 266 | int (*reconfig) (mddev_t *mddev, int layout, int chunk_size); |
266 | /* quiesce moves between quiescence states | 267 | /* quiesce moves between quiescence states |
267 | * 0 - fully active | 268 | * 0 - fully active |