summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-11-26 15:39:51 -0700
committerNeilBrown <neilb@suse.de>2008-11-27 15:30:39 +1100
commitf20c3968363a16f3c8dce5d69863bbb54a4d236e (patch)
treec96904d976647f1051b9f3dbc2cf72c27b428624 /super0.c
parentfabbfd48b6c2398a344d2d4f7cbf0ab98181a6d4 (diff)
downloadmdadm-f20c3968363a16f3c8dce5d69863bbb54a4d236e.tar.gz
mdadm-f20c3968363a16f3c8dce5d69863bbb54a4d236e.tar.xz
mdadm-f20c3968363a16f3c8dce5d69863bbb54a4d236e.zip
allow add_to_super to return errors
Prepare add_to_super to validate disks against the platform capabilities Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 92255c2..ab4232b 100644
--- a/super0.c
+++ b/super0.c
@@ -627,7 +627,7 @@ struct devinfo {
#ifndef MDASSEMBLE
/* Add a device to the superblock being created */
-static void add_to_super0(struct supertype *st, mdu_disk_info_t *dinfo,
+static int add_to_super0(struct supertype *st, mdu_disk_info_t *dinfo,
int fd, char *devname)
{
mdp_super_t *sb = st->sb;
@@ -652,6 +652,8 @@ static void add_to_super0(struct supertype *st, mdu_disk_info_t *dinfo,
di->disk = *dinfo;
di->next = NULL;
*dip = di;
+
+ return 0;
}
#endif