diff options
author | NeilBrown <neilb@suse.de> | 2013-05-14 12:06:27 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-05-14 12:06:27 +1000 |
commit | 83785d301f83fbda9912446b6bd714f0f82f711b (patch) | |
tree | 5b371dc91d9386e487d149e3cd2ffb5074c67cd3 /Incremental.c | |
parent | 8baab049ce5df6342dd5556c8a0aa0e8ded7124b (diff) |
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>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Incremental.c b/Incremental.c index d5656ccd..e7887fac 100644 --- a/Incremental.c +++ b/Incremental.c @@ -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; |