Incremental: remove partitions when assembling.

We remove partitions for --create and --assemble, but not for
--incrmental.
So fix that ommision.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-05-14 12:06:27 +10:00
parent 8baab049ce
commit 83785d301f
1 changed files with 2 additions and 0 deletions

View File

@ -286,7 +286,9 @@ int Incremental(char *devname, struct context *c,
}
/* Cannot hold it open while we add the device to the array,
* so we must release the O_EXCL and depend on the map_lock()
* So now is the best time to remove any partitions.
*/
remove_partitions(dfd);
close(dfd);
dfd = -1;