]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix: report aligned component size value
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 6 Apr 2011 02:40:31 +0000 (12:40 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 6 Apr 2011 02:40:31 +0000 (12:40 +1000)
commit139dae1137839dfe41ec17d720e41aac3af60604
treea485ecad150d93b79f5ef7ae8cd89e2e241f8b74
parent2a4a08e7d3a3a76094352a3c477d7901ac993554
imsm: fix: report aligned component size value

OROM can create array with chunk size not aligned.
To resolve this problem in mdadm, metadata handler has to report
component size aligned value for mdadm operations
while metadata value stays unchanged.

Do not correct alignment for raid1 and in error case.

Correction allows check in analyse_change() (Grow.c:905) to pass.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c