mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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] |
||
---|---|---|
.. | ||
activate | ||
cache | ||
cache_segtype | ||
commands | ||
config | ||
datastruct | ||
device | ||
display | ||
error | ||
filters | ||
format1 | ||
format_pool | ||
format_text | ||
freeseg | ||
label | ||
locking | ||
log | ||
lvmpolld | ||
metadata | ||
mirror | ||
misc | ||
mm | ||
properties | ||
raid | ||
replicator | ||
report | ||
snapshot | ||
striped | ||
thin | ||
unknown | ||
uuid | ||
zero | ||
Makefile.in |