]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Fix up interactions between --assemble and --incremental
authorNeilBrown <neilb@suse.de>
Wed, 10 Oct 2012 07:27:32 +0000 (18:27 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 10 Oct 2012 07:27:32 +0000 (18:27 +1100)
commit0431869cec4c673309d9aa30a2df4b778bc0bd24
treebb6f9ec234f34c8680adcca88b3e438f28fe6a23
parente0ab37a3aedc285525cc8fdf14a64c4d586cf106
Fix up interactions between --assemble and --incremental

If --incremental has partly assembled an array and
--assemble is asked to assemble it, the just finds remaining
devices and makes a new array.  Not good.

So:
1/ modify locking policy so that assemble can be sure that
  no --incremental is running once it locks the map file
2/ Assemble() checks the map file for a duplicate and adds to
   that array instead of creating a new one.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
Incremental.c