]> git.ipfire.org Git - thirdparty/mdadm.git/commit - util.c
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)
commit15632a96f4e6919b4fa54c622e9e14d7fdae42d1
tree876582e51d98f08bd2962851c992b9e008e9c91a
parent3556c2fafbfb408103c9ed92d61b492b7adf6a6f
parse_size: distinguish between 0 and error.

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>
mdadm.c
util.c