Skip to contentSkip to conversation

LVM2 ./WHATS_NEW lib/thin/thin.c

PATCH [email protected] 1 participant 1 message Feb 15, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-15 13:49:52

Modified files:
. : WHATS_NEW
lib/thin : thin.c

Log message:
Initialize monitoring support only for thin pools

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2293&r2=1.2294
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/thin/thin.c.diff?cvsroot=lvm2&r1=1.45&r2=1.46

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.92 - 
 ====================================
+  Initialize monitoring support only for thin pools and skip thin volumes.
   Make conversion from a synced 'mirror' to 'raid1' not cause a full resync.
   Properly test buffer for unit check in units_to_bytes().
   Add configure --with-systemdsystemunitdir.
lib/thin/thin.c +2 -1
@@ -602,7 +602,8 @@
 
 #ifdef DEVMAPPER_SUPPORT
 #  ifdef DMEVENTD
-		if (_get_thin_dso_path(cmd))
+		if ((reg_segtypes[i].flags & SEG_THIN_POOL) &&
+		    _get_thin_dso_path(cmd))
 			segtype->flags |= SEG_MONITORED;
 #  endif /* DMEVENTD */
 #endif