#endif
#include "md_u.h"
#include "md_p.h"
-int Examine(mddev_dev_t devlist, int brief, int export, int scan,
+int Examine(struct mddev_dev *devlist, int brief, int export, int scan,
int SparcAdjust, struct supertype *forcest,
char *homehost)
{
err = 1;
}
else {
- unsigned long long size;
int container = 0;
if (forcest)
st = dup_super(forcest);
- else if (get_dev_size(fd, NULL, &size) == 0 || size == 0) {
+ else if (must_be_container(fd)) {
/* might be a container */
st = super_by_fd(fd, NULL);
container = 1;
} else if (export) {
if (st->ss->export_examine_super)
st->ss->export_examine_super(st);
+ st->ss->free_super(st);
} else {
printf("%s:\n",devlist->devname);
st->ss->examine_super(st, homehost);