public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW lib/metadata/pv_manip.c
@ 2012-03-01 21:49 zkabelac
  0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2012-03-01 21:49 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2012-03-01 21:49:32

Modified files:
	.              : WHATS_NEW 
	lib/metadata   : pv_manip.c 

Log message:
	Test alloc fail

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2331&r2=1.2332
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/pv_manip.c.diff?cvsroot=lvm2&r1=1.31&r2=1.32

--- LVM2/WHATS_NEW	2012/03/01 21:21:54	1.2331
+++ LVM2/WHATS_NEW	2012/03/01 21:49:32	1.2332
@@ -1,5 +1,6 @@
 Version 2.02.94 - 
 ====================================
+  Test for alloc fail from _alloc_pv_segment() in _extend_pv().
   Check for alloc fail from get_segtype_from_string() in _lvcreate_params().
   Add _rimage as reserved suffix to lvm.8 man page.
   Improve error logging from mpath filter.
--- LVM2/lib/metadata/pv_manip.c	2011/04/13 18:26:39	1.31
+++ LVM2/lib/metadata/pv_manip.c	2012/03/01 21:49:32	1.32
@@ -442,10 +442,12 @@
 		return 0;
 	}
 
-	peg = _alloc_pv_segment(pv->fmt->cmd->mem, pv,
-				old_pe_count,
-				new_pe_count - old_pe_count,
-				NULL, 0);
+	if (!(peg = _alloc_pv_segment(pv->fmt->cmd->mem, pv,
+				      old_pe_count,
+				      new_pe_count - old_pe_count,
+				      NULL, 0)))
+		return_0;
+
 	dm_list_add(&pv->segments, &peg->list);
 
 	pv->pe_count = new_pe_count;


^ permalink raw reply	[flat|nested] 2+ messages in thread
* LVM2 ./WHATS_NEW lib/metadata/pv_manip.c
@ 2005-05-11 15:04 agk
  0 siblings, 0 replies; 2+ messages in thread
From: agk @ 2005-05-11 15:04 UTC (permalink / raw)
  To: lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2005-05-11 15:04:06

Modified files:
	.              : WHATS_NEW 
	lib/metadata   : pv_manip.c 

Log message:
	Cope with missing format1 PVs again.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.240&r2=1.241
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/pv_manip.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4


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

end of thread, other threads:[~2012-03-01 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-01 21:49 LVM2 ./WHATS_NEW lib/metadata/pv_manip.c zkabelac
  -- strict thread matches above, loose matches on Subject: below --
2005-05-11 15:04 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).