master - lvconvert: share function for cache params
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=46820bfff3f40d58d28500ce9caafb8625211597 Commit: 46820bfff3f40d58d28500ce9caafb8625211597 Parent: 298d12c4590ccca26b92e1457c72c6369a32d3e9 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Feb 27 14:54:08 2017 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Mar 10 19:33:00 2017 +0100
lvconvert: share function for cache params
Reuse same code for getting/setting cache parameters with lvcreate.
So there is single one place how to get vars from profiles and configs.
Variables declarations are moved to start of function and there is no need to initialize them as they are always defined by functions get_cache_params() and get_pool_params().
--- WHATS_NEW | 1 + tools/lvconvert.c | 101 ++++++++++++++-------------------------------------- 2 files changed, 28 insertions(+), 74 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.169 - ===================================== + Use function cache_set_params() for both lvcreate and lvconvert. Skip rounding on cache chunk size boudary when create cache LV. Improve cache_set_params support for chunk_size selection. Fix metadata profile allocation/cache_[mode|policy] setting.
tools/lvconvert.c +27 -74
153 lines not on this page · raw message