[PATCH 3/3] Add support for creation of cached LVs

Brian C. Lane bcl at redhat.com
Tue Jun 23 00:00:15 UTC 2015


On Mon, Jun 22, 2015 at 08:27:09PM +0200, Vratislav Podzimek wrote:
> Determining parameters of the cache automagically is hard, but if users tell use

s/use/us/


> +def cachepool_default_md_size(cache_size):

needs a docstring

> +    # according to lvmcache(7)
> +    return max(cache_size / 1000, LVM_MIN_CACHE_MD_SIZE)
> +
> +def cachepool_create(vg_name, lv_name, data_size, md_size, mode, pvs):
> +    """Create a cache pool LV with the given parameters"""

docstring for the args.

> +def lvcreate_cached(vg_name, lv_name, lv_size, cache_data_size, cache_md_size,
> +                    mode, slow_pvs, fast_pvs):
> +    """Create a cached LV with the given parameters"""

same

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list