diff options
author | Neil Brown <neilb@suse.de> | 2007-10-19 14:03:17 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-10-19 14:03:17 +1000 |
commit | 25037aa872006fd4613d97e3d3da3c26c61e708f (patch) | |
tree | ab29457fa295477d906c954c81b58abfbfe0e921 | |
parent | 570510ba32858ddedf20a055240ddbf39d3b76e1 (diff) | |
download | mdadm-25037aa872006fd4613d97e3d3da3c26c61e708f.tar.gz |
Remove partitions from a device before adding it to an array.
The 'remove_partitions' call is in the wrong place and applying
to the wrong file.
-rw-r--r-- | Manage.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -306,6 +306,7 @@ int Manage_subdevs(char *devname, int fd, dv->devname, strerror(errno)); return 1; } + remove_partitions(tfd); if (array.not_persistent==0) st->ss->load_super(st, tfd, &osuper, NULL); /* will use osuper later */ @@ -361,7 +362,6 @@ int Manage_subdevs(char *devname, int fd, close(dfd); continue; } - remove_partitions(dfd); close(dfd); break; } |