summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-05-12 21:19:16 +0200
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-05-12 21:19:16 +0200
commit2ec2b7e9d5b6b4f3611f639ee5d221e03de18c61 (patch)
treefc4f373cb27339c457a2f1332031ae4f2674d94e /mdadm.h
parentGrow: Handle failure to load superblock in Grow_addbitmap() (diff)
downloadmdadm-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 'mdadm.h')
-rwxr-xr-xmdadm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index d209488b..b8705854 100755
--- a/mdadm.h
+++ b/mdadm.h
@@ -896,6 +896,8 @@ extern struct superswitch {
* created, in which case data_size may be updated, or it might
* already exist. Metadata handler can know if init_super
* has been called, but not write_init_super.
+ * 0: Success
+ * -Exxxx: On error
*/
int (*add_internal_bitmap)(struct supertype *st, int *chunkp,
int delay, int write_behind,