mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
pool: fix testmode support with pools
Allow the --test mode to proceed further.
This commit is contained in:
parent
1c7aae40a1
commit
a2244c3776
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.112 -
|
Version 2.02.112 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Better support for --test mode with pool creation.
|
||||||
Query lock holding LV when replacing and converting raid volumes.
|
Query lock holding LV when replacing and converting raid volumes.
|
||||||
Add extra validate for locked lv within validate_lv_cache_create().
|
Add extra validate for locked lv within validate_lv_cache_create().
|
||||||
Add internal lvseg_name() function.
|
Add internal lvseg_name() function.
|
||||||
|
@ -415,7 +415,7 @@ int create_pool(struct logical_volume *pool_lv,
|
|||||||
if (!activation())
|
if (!activation())
|
||||||
log_warn("WARNING: Pool %s is created without initialization.",
|
log_warn("WARNING: Pool %s is created without initialization.",
|
||||||
pool_lv->name);
|
pool_lv->name);
|
||||||
else {
|
else if (!test_mode()) {
|
||||||
if (!vg_write(pool_lv->vg) || !vg_commit(pool_lv->vg))
|
if (!vg_write(pool_lv->vg) || !vg_commit(pool_lv->vg))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user