]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Examine.c
mdadm-0.8
[thirdparty/mdadm.git] / Examine.c
index 0473dc16f0b849063859b61b7c9eb5ca43667ebd..961d60ed2c6ea62cd186a7846e97b4f52a1d602d 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -35,7 +35,7 @@
 #endif
 #include       "md_u.h"
 #include       "md_p.h"
-int Examine(mddev_dev_t devlist, int brief, char *conffile)
+int Examine(mddev_dev_t devlist, int brief, int scan)
 {
 
        /* Read the raid superblock from a device and
@@ -60,7 +60,6 @@ int Examine(mddev_dev_t devlist, int brief, char *conffile)
        char *c;
        int rv = 0;
        int err;
-       int scan= 0;
 
        struct array {
                mdp_super_t super;
@@ -68,15 +67,6 @@ int Examine(mddev_dev_t devlist, int brief, char *conffile)
                struct array *next;
        } *arrays = NULL;
 
-       if (devlist == NULL) {
-               devlist = conf_get_devs(conffile);
-               scan=1;
-       }
-       if (devlist == NULL) {
-               fprintf(stderr, Name ": No devices listed in %s\n", conffile);
-               return 1;
-       }
-
        for (; devlist ; devlist=devlist->next) {
                fd = open(devlist->devname, O_RDONLY);
                if (fd < 0) {