mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
report: for cache LV report chunksize
Cache LV reports chunksize via cache-pool.
This commit is contained in:
parent
6a41286c01
commit
8d7340b7a1
@ -177,6 +177,8 @@ uint64_t lvseg_chunksize(const struct lv_segment *seg)
|
||||
size = (uint64_t) find_snapshot(seg->lv)->chunk_size;
|
||||
else if (seg_is_pool(seg))
|
||||
size = (uint64_t) seg->chunk_size;
|
||||
else if (seg_is_cache(seg))
|
||||
return lvseg_chunksize(first_seg(seg->pool_lv));
|
||||
else
|
||||
size = UINT64_C(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user