[PATCH] md: allow md arrays to be resized if devices are large enough.
commitf23b262d654bdf04a8d18b7f1d909930cc5695d6
authorNeil Brown <neilb@cse.unsw.edu.au>
Sat, 5 Jun 2004 03:56:39 +0000 (4 20:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 5 Jun 2004 03:56:39 +0000 (4 20:56 -0700)
treee34d8eb3ae9b50b1b6431b1b96f483539757b964
parentc144ee55581b60759c7a04633b2f34b0779c3dbe
[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 <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid5.c
drivers/md/raid6main.c
include/linux/raid/md_k.h