]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdassemble.c
Generic support for --consistency-policy and PPL
[thirdparty/mdadm.git] / mdassemble.c
index 667b2474ad6e947335f5333b6914f297a7e87d7d..471ffeb03ae410641eb44f8f29d2ba8469d49a05 100644 (file)
@@ -32,7 +32,7 @@ char const Name[] = "mdassemble";
 /* from mdopen.c */
 int open_mddev(char *dev, int report_errors/*unused*/)
 {
-       int mdfd = open(dev, O_RDWR);
+       int mdfd = open(dev, O_RDONLY);
        if (mdfd < 0)
                pr_err("error opening %s: %s\n",
                        dev, strerror(errno));
@@ -50,18 +50,6 @@ int create_mddev(char *dev, char *name, int autof/*unused*/, int trustworthy,
        return open_mddev(dev, 0);
 }
 #endif
-int map_update(struct map_ent **mpp, char *devnm, char *metadata,
-              int *uuid, char *path)
-{
-       return 0;
-}
-struct map_ent *map_by_name(struct map_ent **mpp, char *name)
-{
-       return NULL;
-}
-int map_lock(struct map_ent **melp){return 0;}
-void map_unlock(struct map_ent **melp){}
-struct map_ent *map_by_uuid(struct map_ent **map, int uuid[4]){return NULL;}
 
 int rv;
 int mdfd = -1;