mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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 -
|
||||
=====================================
|
||||
Better support for --test mode with pool creation.
|
||||
Query lock holding LV when replacing and converting raid volumes.
|
||||
Add extra validate for locked lv within validate_lv_cache_create().
|
||||
Add internal lvseg_name() function.
|
||||
|
@ -415,7 +415,7 @@ int create_pool(struct logical_volume *pool_lv,
|
||||
if (!activation())
|
||||
log_warn("WARNING: Pool %s is created without initialization.",
|
||||
pool_lv->name);
|
||||
else {
|
||||
else if (!test_mode()) {
|
||||
if (!vg_write(pool_lv->vg) || !vg_commit(pool_lv->vg))
|
||||
return_0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user