LVM2 ./WHATS_NEW liblvm/lvm_base.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2011-06-15 13:29:48
Modified files:
. : WHATS_NEW
liblvm : lvm_base.c
Log message:
Add proper udev library context initialization and finalization to liblvm.
This was missing in liblvm and it caused all udev-related operations to not take effect when using liblvm, e.g. obtaining the list of devices from udev db instead of scanning the whole /dev which also recreated the .cache as a side effect. This was also the case with udisks-lvm-pv-export prober which is run from within udev rules whenever the CHANGE event is fired.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2014&r2=1.2015
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_base.c.diff?cvsroot=lvm2&r1=1.21&r2=1.22
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.86 - ================================= + Add proper udev library context initialization and finalization to liblvm. Fix last snapshot removal to avoid table reload while a device is suspended. Use dm_get_suspended_counter in replacement critical_section logic. Downgrade critical_section errors to debug level until it is moved to libdm.
liblvm/lvm_base.c +4 -0
@@ -31,6 +31,9 @@/* FIXME: logging bound to handle */ +if (!udev_init_library_context ()) + stack; +/* create context */ /* FIXME: split create_toolcontext */ /* FIXME: make all globals configurable */
@@ -69,6 +72,7 @@void lvm_quit (lvm_t libh) {destroy_toolcontext ((struct cmd_context *)libh); +udev_fin_library_context (); }int lvm_config_reload (lvm_t libh)