]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
allow add_to_super to return errors
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index f7fd53e5cde6be193733c8e39a0a86aa709e1d69..05b79bafa9497843a59b308a3b227bd7a3f7ba1e 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -503,7 +503,7 @@ extern struct superswitch {
        /* update the metadata to include new device, either at create or
         * when hot-adding a spare.
         */
-       void (*add_to_super)(struct supertype *st, mdu_disk_info_t *dinfo,
+       int (*add_to_super)(struct supertype *st, mdu_disk_info_t *dinfo,
                             int fd, char *devname);
 
        /* Write metadata to one device when fixing problems or adding