public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW lib/locking/locking.c lib/con ...
@ 2010-04-12 11:52 agk
  0 siblings, 0 replies; only message in thread
From: agk @ 2010-04-12 11:52 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2010-04-12 11:52:54

Modified files:
	.              : WHATS_NEW 
	lib/locking    : locking.c 
	lib/config     : config.c 

Log message:
	Don't ignore error if resuming any LV fails in resume_lvs.
	Skip closing persistent filter cache file if open failed.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1509&r2=1.1510
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/locking.c.diff?cvsroot=lvm2&r1=1.77&r2=1.78
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.78&r2=1.79

--- LVM2/WHATS_NEW	2010/04/09 21:42:48	1.1509
+++ LVM2/WHATS_NEW	2010/04/12 11:52:53	1.1510
@@ -1,5 +1,7 @@
 Version 2.02.63 -  
 ================================
+  Don't ignore error if resuming any LV fails in resume_lvs.
+  Skip closing persistent filter cache file if open failed.
   Install .a .so links to $(usrlibdir).
   Add --enable-write_install options to install user writable files.
   Use INSTALL_PROGRAM/DATA/WDATA target.
--- LVM2/lib/locking/locking.c	2010/04/01 10:34:10	1.77
+++ LVM2/lib/locking/locking.c	2010/04/12 11:52:53	1.78
@@ -468,12 +468,15 @@
 int resume_lvs(struct cmd_context *cmd, struct dm_list *lvs)
 {
 	struct lv_list *lvl;
+	int r = 1;
 
 	dm_list_iterate_items(lvl, lvs)
-		if (!resume_lv(cmd, lvl->lv))
+		if (!resume_lv(cmd, lvl->lv)) {
+			r = 0;
 			stack;
+		}
 
-	return 1;
+	return r;
 }
 
 /* Lock a list of LVs */
--- LVM2/lib/config/config.c	2010/04/01 10:34:09	1.78
+++ LVM2/lib/config/config.c	2010/04/12 11:52:53	1.79
@@ -295,8 +295,10 @@
 		if (!(c->dev = dev_create_file(c->filename, NULL, NULL, 1)))
 			return_0;
 
-		if (!dev_open_flags(c->dev, O_RDONLY, 0, 0))
+		if (!dev_open_flags(c->dev, O_RDONLY, 0, 0)) {
+			c->dev = 0;
 			return_0;
+		}
 	}
 
 	r = read_config_fd(cft, c->dev, 0, (size_t) info.st_size, 0, 0,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-12 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 11:52 LVM2 ./WHATS_NEW lib/locking/locking.c lib/con agk

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).