]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: fix: Allowed to create 2 volumes with total size less then maximum.
authorLukasz Orlowski <lukasz.orlowski@intel.com>
Mon, 14 Nov 2011 05:41:03 +0000 (16:41 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Nov 2011 05:41:03 +0000 (16:41 +1100)
commit3baa56ab61e371e064db23e5c6b2fe0f23e79d84
tree6bf68978734e3132fa2140403eaffaf6018047fb
parent68fe459825ff85304a9a13128abf4ae6c7a1bfcf
imsm: fix: Allowed to create 2 volumes with total size less then maximum.

mdadm allows to create second volume on the same disk set, whose size is
less then the free space left in the container (with IMSM_NO_PLATFORM
undefined or set to 0). This is an OROM compatibility issue.
It is fixed by verifying whether IMSM_NO_PLATFORM is set and for
the second volume creation scenario, requested size is verified against
remaining available space.

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