Skip to contentSkip to conversation

LVM2/lib/display display.c

PATCH [email protected] 1 participant 1 message Sep 26, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-09-26 13:11:03

Modified files:
lib/display : display.c

Log message:
Show some Thin related info in lvdisplay

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/display/display.c.diff?cvsroot=lvm2&r1=1.117&r2=1.118

lib/display/display.c +12 -0
@@ -548,6 +548,18 @@
 			  snap_seg->origin->name);
 	}
 
+	if (lv_is_thin_volume(lv)) {
+		log_print("LV Thin pool           %s%s/%s", lv->vg->cmd->dev_dir,
+			  lv->vg->name, first_seg(lv)->pool_lv->name);
+	} else if (lv_is_thin_pool(lv)) {
+		log_print("LV Thin metadada       %s%s/%s", lv->vg->cmd->dev_dir,
+			  lv->vg->name, first_seg(lv)->pool_metadata_lv->name);
+		log_print("LV Thin data pool      %s%s/%s", lv->vg->cmd->dev_dir,
+			  lv->vg->name, seg_lv(first_seg(lv), 0)->name);
+		log_print("LV zero new blocks     %s",
+			  first_seg(lv)->zero_new_blocks ? "yes" : "no");
+	}
+
 	if (inkernel && info.suspended)
 		log_print("LV Status              suspended");
 	else