master - lvconvert: allow splitcache on hidden/used cache pool
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3951ca93204742d23b56f8d253230d33f322aad5 Commit: 3951ca93204742d23b56f8d253230d33f322aad5 Parent: 39921284a03fd2d2c3f3ac22c3e69cba913494bf Author: David Teigland <[email protected]> AuthorDate: Fri Jul 8 14:08:55 2016 -0500 Committer: David Teigland <[email protected]> CommitterDate: Fri Jul 8 14:34:36 2016 -0500
lvconvert: allow splitcache on hidden/used cache pool
lvconvert --splitcache VG/CachePool_corig
Allow the split via the hidden/used cache pool for the time being, since the new lvconvert code did intend to allow it, but was just missing the exception in the list of hidden LVs that were allowed.
The preferred method for splitcache is to run it on the visible cache LV, not the hidden cache pool. That may eventually become the only method since we try to avoid running commands on hidden LVs.
--- tools/lvconvert.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/lvconvert.c +1 -0
@@ -4372,6 +4372,7 @@ static int _lvconvert(struct cmd_context *cmd, struct logical_volume *lv, !lv_is_cache_pool_data(lv) && !lv_is_thin_pool_metadata(lv) && !lv_is_thin_pool_data(lv) && + !lv_is_used_cache_pool(lv) && !lv_is_raid_image(lv)) {log_error ("Cannot convert internal LV %s." ,display_lvname (lv)); ret =0 ;