summaryrefslogtreecommitdiffstats
path: root/Examine.c
diff options
context:
space:
mode:
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/Examine.c b/Examine.c
index 0473dc1..961d60e 100644
--- 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) {