]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
parse_size: distinguish between 0 and error.
authorNeilBrown <neilb@suse.de>
Tue, 3 Apr 2012 18:00:42 +0000 (04:00 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 4 Apr 2012 04:03:13 +0000 (14:03 +1000)
It isn't sufficient to use '0' for 'error' as well will
later have fields that can validly be '0'.

So return "-1" on error.

Also fix parsing of --bitmap_check so that '0' is treated
as an error: we don't support 512B anyway.

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

No differences found