mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-07 21:18:59 +03:00
cache: no report error for cpool without mode
It's perferctly valid to not have cachemode for unused cache-pool. https://bugzilla.redhat.com/show_bug.cgi?id=1255184
This commit is contained in:
parent
8c09f12943
commit
cbe81ad393
@ -2078,7 +2078,7 @@ static int _cachemode_disp(struct dm_report *rh, struct dm_pool *mem,
|
||||
if (seg_is_cache(seg))
|
||||
seg = first_seg(seg->pool_lv);
|
||||
|
||||
if (seg_is_cache_pool(seg)) {
|
||||
if (seg_is_cache_pool(seg) && cache_mode_is_set(seg)) {
|
||||
if (!(cachemode_str = get_cache_mode_name(seg)))
|
||||
return_0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user