Split the block device creation in two parts
authorIustin Pop <iustin@google.com>
Mon, 19 Jan 2009 11:10:42 +0000 (11:10 +0000)
committerIustin Pop <iustin@google.com>
Mon, 19 Jan 2009 11:10:42 +0000 (11:10 +0000)
commitde12473a7fa22b7351a058df34fa4da3bc076853
treec2295dff5aa7b4a2e81862368b2d48f2f8c6cb05
parent428958aa0c73e82d55998e5e112dd97c017f80fb
Split the block device creation in two parts

Some callers of _CreateBlockDev need recursive behaviour, but not all.
The replace secondary first creates (manually) new LVs to ensure storage
is there, and then it creates the new DRBD. At this point, we need a
non-recursive call so that the LVs are not needlessly re-created.

This patch splits the single device creation into a separate function,
so that LUReplaceDisks can use it.

Reviewed-by: ultrotter
lib/cmdlib.py