]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: fix: check if size of expansion is not larger than maximum
authorLukasz Dorau <lukasz.dorau@intel.com>
Thu, 17 May 2012 14:14:00 +0000 (16:14 +0200)
committerNeilBrown <neilb@suse.de>
Fri, 18 May 2012 03:40:17 +0000 (13:40 +1000)
commit65d38cca1400beac74c0f42c104697a4f1542b96
tree1a3b763a0fae62fd7f145bdecc87659762d7bad1
parent8948c17fdedff788cca39c811f048bc84ab70796
imsm: fix: check if size of expansion is not larger than maximum

We do not check if requested size of expansion is larger than maximum
available size now. If it is larger the output message is a bit misleading,
for example:
   mdadm: Cannot set size on array members.
   mdadm: Cannot set device size for /dev/md/vol: Device or resource busy
Now we check if requested size of expansion is larger than maximum
available size and the appropriate output message was added.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c