diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-05-12 21:19:16 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-05-12 21:19:16 +0200 |
commit | 2ec2b7e9d5b6b4f3611f639ee5d221e03de18c61 (patch) | |
tree | fc4f373cb27339c457a2f1332031ae4f2674d94e /Create.c | |
parent | Grow: Handle failure to load superblock in Grow_addbitmap() (diff) | |
download | mdadm-2ec2b7e9d5b6b4f3611f639ee5d221e03de18c61.tar.xz mdadm-2ec2b7e9d5b6b4f3611f639ee5d221e03de18c61.zip |
mdadm: Make add_internal_bitmap() return 0 on success
add_internal_bitmap() returned 1 on success and 0 on error which is
inconsistent. This changes it to return 0 on success and use more
reasonable error codes on error.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -774,9 +774,9 @@ int Create(struct supertype *st, char *mddev, st->ss->name); goto abort_locked; } - if (!st->ss->add_internal_bitmap(st, &s->bitmap_chunk, - c->delay, s->write_behind, - bitmapsize, 1, major_num)) { + if (st->ss->add_internal_bitmap(st, &s->bitmap_chunk, + c->delay, s->write_behind, + bitmapsize, 1, major_num)) { pr_err("Given bitmap chunk size not supported.\n"); goto abort_locked; } |