Skip to contentSkip to conversation

LVM2/lib/display display.c

PATCH [email protected] 1 participant 1 message May 31, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2007-05-31 20:26:12

Modified files:
lib/display : display.c

Log message:
Fix pvdisplay --maps to not display segment header for orphan PVs.

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

lib/display/display.c +2 -1
@@ -262,7 +262,8 @@
 {
 	struct pv_segment *pvseg;
 
-	log_print("--- Physical Segments ---");
+	if (pv->pe_size)
+		log_print("--- Physical Segments ---");
 
 	list_iterate_items(pvseg, &pv->segments) {
 		log_print("Physical extent %u to %u:",