master - pool: fix testmode support with pools
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a2244c37764f8481fedd7d4b5f286665e9d46af2 Commit: a2244c37764f8481fedd7d4b5f286665e9d46af2 Parent: 1c7aae40a1bb1351680ec8c7afa12c2bf8b784a0 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Oct 20 15:03:24 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Oct 24 16:39:31 2014 +0200
pool: fix testmode support with pools
Allow the --test mode to proceed further.
--- WHATS_NEW | 1 + lib/metadata/pool_manip.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -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.
lib/metadata/pool_manip.c +1 -1
@@ -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;