md: add 'size' as a personality method
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 Mar 2009 01:10:40 +0000 (18:10 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 31 Mar 2009 03:57:49 +0000 (14:57 +1100)
In preparation for giving userspace control over ->array_sectors we need
to be able to retrieve the 'default' size, and the 'anticipated' size
when a reshape is requested.  For personalities that do not reshape emit
a warning if anything but the default size is requested.

In the raid5 case we need to update ->previous_raid_disks to make the
new 'default' size available.

Reviewed-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

No differences found