summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 20:50:38 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 20:50:38 +1100
commitfe056d1fb0b1d08c614f574cceaa640abc382544 (patch)
tree2ee2ebca04e23a7dc912fdef7c4f7bd95066a17c /mdadm.c
parent215bb3f77627d818d5bc3eaca190212d491e1fcf (diff)
downloadmdadm-fe056d1fb0b1d08c614f574cceaa640abc382544.tar.gz
mdadm-fe056d1fb0b1d08c614f574cceaa640abc382544.tar.xz
mdadm-fe056d1fb0b1d08c614f574cceaa640abc382544.zip
config: Don't require an array to have a device name.
i.e. in mdadm.conf you can have a line like ARRAY uuid=whatever and it will use auto-name-generation to give a name to the array at assemble-time. The is different from blind auto-assembly in that the array will be treated as 'local'.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/mdadm.c b/mdadm.c
index f3086a9..b2ec6f9 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1082,16 +1082,6 @@ int main(int argc, char *argv[])
exit(1);
}
for (; array_list; array_list = array_list->next) {
- mdfd = open_mddev(array_list->devname, 0);
- if (mdfd >= 0) {
- mdu_array_info_t array;
- /* skip if already assembled */
- if (ioctl(mdfd, GET_ARRAY_INFO, &array)>=0) {
- cnt++;
- close(mdfd);
- continue;
- }
- }
if (array_list->autof == 0)
array_list->autof = autof;