*/
int mdfd;
int clean;
- int auto_assem = (mddev == NULL);
+ int auto_assem = (mddev == NULL && !ident->uuid_set &&
+ ident->super_minor == UnSet && ident->name[0] == 0
+ && ident->container == NULL && ident->member == NULL);
int old_linux = 0;
int vers = vers; /* Keep gcc quite - it really is initialised */
struct {
}
if (auto_assem)
ioctl(mdfd, STOP_ARRAY, NULL);
+ close(mdfd);
return 1;
} else {
/* The "chosen_drive" is a good choice, and if necessary, the superblock has