From e0d1903663dac9307a37646c26abf7991b0a9593 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 4 Apr 2002 01:58:32 +0000 Subject: mdadm-0.8 --- Examine.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'Examine.c') 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) { -- cgit