]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Incremental.c
Rename open_mddev to create_mddev
[thirdparty/mdadm.git] / Incremental.c
index 8619c28e02e097669f7728356b8cb45d6ab71573..08960a5f5fde3664197b7b65d96603eace4a6f59 100644 (file)
@@ -311,7 +311,7 @@ int Incremental(char *devname, int verbose, int runstop,
                        devnum = use_partitions ? (-1-devnum) : devnum;
        }
 
-       mdfd = open_mddev_devnum(match ? match->devname : mp ? mp->path : NULL,
+       mdfd = create_mddev_devnum(match ? match->devname : mp ? mp->path : NULL,
                                 devnum,
                                 name_to_use,
                                 chosen_name, autof >> 3);
@@ -714,7 +714,7 @@ int IncrementalScan(int verbose)
                mdu_array_info_t array;
                mdu_bitmap_file_t bmf;
                struct mdinfo *sra;
-               int mdfd = open_mddev_devnum(me->path, me->devnum,
+               int mdfd = create_mddev_devnum(me->path, me->devnum,
                                             NULL, path, 0);
                if (mdfd < 0)
                        continue;
@@ -898,7 +898,7 @@ int Incremental_container(struct supertype *st, char *devname, int verbose,
                        else
                                devnum = find_free_devnum(usepart);
                }
-               mdfd = open_mddev_devnum(mp ? mp->path : match ? match->devname : NULL,
+               mdfd = create_mddev_devnum(mp ? mp->path : match ? match->devname : NULL,
                                         devnum, name_to_use,
                                         chosen_name, autof>>3);