public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW liblvm/lvm_base.c
@ 2011-06-15 13:29 prajnoha
  0 siblings, 0 replies; 3+ messages in thread
From: prajnoha @ 2011-06-15 13:29 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@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

--- LVM2/WHATS_NEW	2011/06/13 22:28:04	1.2014
+++ LVM2/WHATS_NEW	2011/06/15 13:29:48	1.2015
@@ -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.
--- LVM2/liblvm/lvm_base.c	2011/05/07 13:50:11	1.21
+++ LVM2/liblvm/lvm_base.c	2011/06/15 13:29:48	1.22
@@ -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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* LVM2 ./WHATS_NEW liblvm/lvm_base.c
@ 2010-12-20 13:28 zkabelac
  0 siblings, 0 replies; 3+ messages in thread
From: zkabelac @ 2010-12-20 13:28 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2010-12-20 13:28:05

Modified files:
	.              : WHATS_NEW 
	liblvm         : lvm_base.c 

Log message:
	Fix wrong cast to char*
	
	As cmd->cmd_line is already const char pointer it's not needed to cast already
	const char pointer to char pointer.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1841&r2=1.1842
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_base.c.diff?cvsroot=lvm2&r1=1.19&r2=1.20

--- LVM2/WHATS_NEW	2010/12/20 13:17:56	1.1841
+++ LVM2/WHATS_NEW	2010/12/20 13:28:04	1.1842
@@ -1,5 +1,6 @@
 Version 2.02.79 -  
 ===================================
+  Fixing const cast gcc warnings in the code.
   Check read() and close() results in _get_cmdline().
   Add const for struct config_node usage.
   Fix NULL pointer check in error path in clvmd do_command(). (2.02.78)
--- LVM2/liblvm/lvm_base.c	2010/12/14 23:20:58	1.19
+++ LVM2/liblvm/lvm_base.c	2010/12/20 13:28:04	1.20
@@ -61,7 +61,7 @@
 	 * archive() call.  Possible example:
 	 * cmd_line = "lvm_vg_create: vg1\nlvm_vg_extend vg1 /dev/sda1\n"
 	 */
-	cmd->cmd_line = (char *)"liblvm";
+	cmd->cmd_line = "liblvm";
 
 	return (lvm_t) cmd;
 }


^ permalink raw reply	[flat|nested] 3+ messages in thread

* LVM2 ./WHATS_NEW liblvm/lvm_base.c
@ 2010-03-17 14:45 mbroz
  0 siblings, 0 replies; 3+ messages in thread
From: mbroz @ 2010-03-17 14:45 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mbroz@sourceware.org	2010-03-17 14:45:28

Modified files:
	.              : WHATS_NEW 
	liblvm         : lvm_base.c 

Log message:
	Disable long living process flag in lvm2app.
	
	This option should be configurable, but for now
	do not set it at all.
	
	(lvm2app is used in udisks probers and there
	cac cause several nasty races when trying to update
	lvmcache during rescan.)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1466&r2=1.1467
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_base.c.diff?cvsroot=lvm2&r1=1.14&r2=1.15

--- LVM2/WHATS_NEW	2010/03/17 14:44:18	1.1466
+++ LVM2/WHATS_NEW	2010/03/17 14:45:28	1.1467
@@ -1,5 +1,6 @@
 Version 2.02.63 - 
 ================================
+  Disable long living process flag in lvm2app.
   Fix pvcreate device md filter check.
   Suppress repeated errors about the same missing PV uuids.
   Bypass full device scans when using internally-cached VG metadata.
--- LVM2/liblvm/lvm_base.c	2010/01/22 09:45:29	1.14
+++ LVM2/liblvm/lvm_base.c	2010/03/17 14:45:28	1.15
@@ -32,7 +32,8 @@
 
 	/* create context */
 	/* FIXME: split create_toolcontext */
-	cmd = create_toolcontext(1, system_dir);
+	/* FIXME: make all globals configurable */
+	cmd = create_toolcontext(0, system_dir);
 	if (!cmd)
 		return NULL;
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-15 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15 13:29 LVM2 ./WHATS_NEW liblvm/lvm_base.c prajnoha
  -- strict thread matches above, loose matches on Subject: below --
2010-12-20 13:28 zkabelac
2010-03-17 14:45 mbroz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).