]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-ddf.c
Generic support for --consistency-policy and PPL
[thirdparty/mdadm.git] / super-ddf.c
index 1707ad1e1a18d4c08dec6021ad8c15100e882563..cdd16a47aab33817d10097119344bb6d1943f8bf 100644 (file)
@@ -2290,7 +2290,7 @@ static unsigned int find_vde_by_guid(const struct ddf_super *ddf,
 
 static int init_super_ddf(struct supertype *st,
                          mdu_array_info_t *info,
-                         unsigned long long size, char *name, char *homehost,
+                         struct shape *s, char *name, char *homehost,
                          int *uuid, unsigned long long data_offset)
 {
        /* This is primarily called by Create when creating a new array.
@@ -2328,7 +2328,7 @@ static int init_super_ddf(struct supertype *st,
        struct virtual_disk *vd;
 
        if (st->sb)
-               return init_super_ddf_bvd(st, info, size, name, homehost, uuid,
+               return init_super_ddf_bvd(st, info, s->size, name, homehost, uuid,
                                          data_offset);
 
        if (posix_memalign((void**)&ddf, 512, sizeof(*ddf)) != 0) {
@@ -3347,7 +3347,7 @@ static int validate_geometry_ddf(struct supertype *st,
                                 int *chunk, unsigned long long size,
                                 unsigned long long data_offset,
                                 char *dev, unsigned long long *freesize,
-                                int verbose)
+                                int consistency_policy, int verbose)
 {
        int fd;
        struct mdinfo *sra;