1
0
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:
Zdenek Kabelac 2014-10-20 15:03:24 +02:00
parent 1c7aae40a1
commit a2244c3776
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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;