mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
report: lvs: properly display 'o' for volume type bit and 'C' for target type bit in lv_attr field for cache origin LVs
Before this patch: LV VG Attr [cache_orig_corig] vg -wi-ao---- With this patch applied: LV VG Attr [cache_orig_corig] vg owi-aoC---
This commit is contained in:
parent
8eba33510f
commit
1cd622d98b
@ -673,6 +673,8 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv)
|
||||
repstr[0] = 'l';
|
||||
else if (lv_is_cow(lv))
|
||||
repstr[0] = (lv_is_merging_cow(lv)) ? 'S' : 's';
|
||||
else if (lv_is_cache_origin(lv))
|
||||
repstr[0] = 'o';
|
||||
else
|
||||
repstr[0] = '-';
|
||||
|
||||
@ -737,7 +739,7 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv)
|
||||
|
||||
if (lv_is_thin_pool(lv) || lv_is_thin_volume(lv))
|
||||
repstr[6] = 't';
|
||||
else if (lv_is_cache_pool(lv) || lv_is_cache(lv))
|
||||
else if (lv_is_cache_pool(lv) || lv_is_cache(lv) || lv_is_cache_origin(lv))
|
||||
repstr[6] = 'C';
|
||||
else if (lv_is_raid_type(lv))
|
||||
repstr[6] = 'r';
|
||||
|
Loading…
Reference in New Issue
Block a user