mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
d6cf83968c
Use common _lvname_disp to report lv_parent. The _lvname_disp takes care of properly marking LVs which are not visible - such LVs are always enclosed in brackets when reported within any other field. For example, thin pool over RAID. Before: $ lvs -a -o name,lv_parent,data_lv,metadata_lv vg LV Parent Data Meta cache_pool [cache_pool_tdata] [cache_pool_tmeta] [cache_pool_tdata] cache_pool [cache_pool_tdata_rimage_0] cache_pool_tdata [cache_pool_tdata_rimage_1] cache_pool_tdata [cache_pool_tdata_rmeta_0] cache_pool_tdata [cache_pool_tdata_rmeta_1] cache_pool_tdata [cache_pool_tmeta] cache_pool [cache_pool_tmeta_rimage_0] cache_pool_tmeta [cache_pool_tmeta_rimage_1] cache_pool_tmeta [cache_pool_tmeta_rmeta_0] cache_pool_tmeta [cache_pool_tmeta_rmeta_1] cache_pool_tmeta [lvol0_pmspare] With this patch applied: $ lvs -a -o name,lv_parent,data_lv,metadata_lv vg LV Parent Data Meta cache_pool [cache_pool_tdata] [cache_pool_tmeta] [cache_pool_tdata] cache_pool [cache_pool_tdata_rimage_0] [cache_pool_tdata] [cache_pool_tdata_rimage_1] [cache_pool_tdata] [cache_pool_tdata_rmeta_0] [cache_pool_tdata] [cache_pool_tdata_rmeta_1] [cache_pool_tdata] [cache_pool_tmeta] cache_pool [cache_pool_tmeta_rimage_0] [cache_pool_tmeta] [cache_pool_tmeta_rimage_1] [cache_pool_tmeta] [cache_pool_tmeta_rmeta_0] [cache_pool_tmeta] [cache_pool_tmeta_rmeta_1] [cache_pool_tmeta] [lvol0_pmspare] |
||
---|---|---|
.. | ||
columns-devtypes.h | ||
columns.h | ||
properties.c | ||
properties.h | ||
report.c | ||
report.h | ||
values.h |