]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super0.c
Fix component size checks in validate_super0.
authorNeilBrown <neilb@suse.de>
Thu, 8 Sep 2011 02:20:36 +0000 (12:20 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 8 Sep 2011 02:20:36 +0000 (12:20 +1000)
commit01619b481883926f13da2b1b88f3125359a6a08b
treec40c54f82dfbea748ba9b0d88105c0be17609537
parent42de2ac27d632236909f88bd5309161a32379327
Fix component size checks in validate_super0.

A 0.90 array can use at most 4TB of each device - 2TB between
2.6.39 and 3.1 due to a kernel bug.

The test for this in validate_super0 is very wrong.  'size' is sectors
and the number it is compared against is just confusing.

So fix it all up and correct the spelling of terabytes and remove
a second redundant test on 'size'.

Signed-off-by: NeilBrown <neilb@suse.de>
super0.c
util.c