From f23b262d654bdf04a8d18b7f1d909930cc5695d6 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 4 Jun 2004 20:56:39 -0700 Subject: [PATCH] md: allow md arrays to be resized if devices are large enough. It is possible to have raid1/4/5/6 arrays that do not use all the space on the drive. This can be done explicitly, or can happen info you, one by one, replace all the drives with larger devices. This patch extends the "SET_ARRAY_INFO" ioctl (which previously invalid on active arrays) allow some attributes of the array to be changed and implements changing of the "size" attribute. "size" is the amount of each device that is actually used. If "size" is increased, the new space will immediately be "resynced". Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/raid/md_k.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/raid') diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index b2ac5492ed23..1af736b37d0b 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h @@ -279,6 +279,7 @@ struct mdk_personality_s int (*hot_remove_disk) (mddev_t *mddev, int number); int (*spare_active) (mddev_t *mddev); int (*sync_request)(mddev_t *mddev, sector_t sector_nr, int go_faster); + int (*resize) (mddev_t *mddev, sector_t sectors); }; -- cgit v1.2.3