master - thin: merge display
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ff112eee181748dbf827d91a7ebf0c0f1d7878a0 Commit: ff112eee181748dbf827d91a7ebf0c0f1d7878a0 Parent: 1200b7e7c2be18fcd2644817a5e57c6182800ee0 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Nov 29 15:54:51 2013 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Dec 4 14:30:26 2013 +0100
thin: merge display
--- lib/display/display.c | 6 ++++++ lib/metadata/lv.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletions(-)
lib/display/display.c +6 -0
@@ -607,8 +607,14 @@ int lvdisplay_full(struct cmd_context *cmd,if (seg->external_lv)log_print ("LV External origin name %s" , seg->external_lv->name); +if (seg->merge_lv) +log_print ("LV merging to %s" , + seg->merge_lv->name);if (inkernel) thin_active =lv_thin_percent (lv,0 , &thin_percent); +if (lv_is_merging_origin (lv)) +log_print ("LV merged with %s" , +find_snapshot (lv)->lv->name); }else if (lv_is_thin_pool (lv)) {if (inkernel) { thin_data_active =lv_thin_pool_percent (lv,0 , &thin_data_percent);
lib/metadata/lv.c +2 -1
@@ -555,7 +555,8 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv)else if (lv->status &MIRRORED ) repstr[0 ] = (lv->status &LV_NOTSYNCED ) ?'M' :'m' ;else if (lv_is_thin_volume (lv)) - repstr[0 ] ='V' ; + repstr[0 ] =lv_is_merging_origin (lv) ? +'O' : (lv_is_merging_thin_snapshot (lv) ?'S' :'V' );else if (lv->status &VIRTUAL ) repstr[0 ] ='v' ;else if (lv_is_thin_pool (lv))