public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW lib/format1/disk-rep.c
@ 2010-12-01 10:33 zkabelac
  0 siblings, 0 replies; 4+ messages in thread
From: zkabelac @ 2010-12-01 10:33 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2010-12-01 10:33:56

Modified files:
	.              : WHATS_NEW 
	lib/format1    : disk-rep.c 

Log message:
	Fallback to full rescan for missing device
	
	Fix bug when NULL could have been passsed as 'data'
	to _add_pv_to_list() if 'dev' is NULL.
	
	Now it fallbacks to complete scan.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1819&r2=1.1820
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/disk-rep.c.diff?cvsroot=lvm2&r1=1.82&r2=1.83

--- LVM2/WHATS_NEW	2010/11/30 23:03:35	1.1819
+++ LVM2/WHATS_NEW	2010/12/01 10:33:55	1.1820
@@ -1,5 +1,6 @@
 Version 2.02.78 - 
 ====================================
+  Do a full rescan if some device is missing in read_pvs_in_vg().
   Avoid misleading warnings in vgextend --restoremissing in certain cases.
   Add error path stack traces for _process_mapper_dir(), _create_and_load_v4().
   Add missing test for failed pool allocation in write_config_node().
--- LVM2/lib/format1/disk-rep.c	2010/09/30 21:06:51	1.82
+++ LVM2/lib/format1/disk-rep.c	2010/12/01 10:33:56	1.83
@@ -471,7 +471,7 @@
 	    vginfo->infos.n) {
 		dm_list_iterate_items(info, &vginfo->infos) {
 			dev = info->dev;
-			if (dev && !(data = read_disk(fmt, dev, mem, vg_name)))
+			if (!dev || !(data = read_disk(fmt, dev, mem, vg_name)))
 				break;
 			_add_pv_to_list(head, data);
 		}


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

* LVM2 ./WHATS_NEW lib/format1/disk-rep.c
@ 2008-11-03 16:26 agk
  0 siblings, 0 replies; 4+ messages in thread
From: agk @ 2008-11-03 16:26 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2008-11-03 16:26:27

Modified files:
	.              : WHATS_NEW 
	lib/format1    : disk-rep.c 

Log message:
	Rename a couple of variables that matched function names.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.988&r2=1.989
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/disk-rep.c.diff?cvsroot=lvm2&r1=1.76&r2=1.77

--- LVM2/WHATS_NEW	2008/11/01 20:48:09	1.988
+++ LVM2/WHATS_NEW	2008/11/03 16:26:26	1.989
@@ -1,5 +1,6 @@
 Version 2.02.43 -
 ===================================
+  Rename a couple of variables that matched function names.
   Use simplified x.y.z version number in libdevmapper.pc.
   Merge device-mapper into the lvm2 tree.
   Remove ancient debian directory.
--- LVM2/lib/format1/disk-rep.c	2008/09/19 07:03:23	1.76
+++ LVM2/lib/format1/disk-rep.c	2008/11/03 16:26:27	1.77
@@ -277,12 +277,12 @@
 
 static int _read_lvs(struct disk_list *data)
 {
-	unsigned int i, read = 0;
+	unsigned int i, lvs_read = 0;
 	uint64_t pos;
 	struct lvd_list *ll;
 	struct vg_disk *vgd = &data->vgd;
 
-	for (i = 0; (i < vgd->lv_max) && (read < vgd->lv_cur); i++) {
+	for (i = 0; (i < vgd->lv_max) && (lvs_read < vgd->lv_cur); i++) {
 		pos = data->pvd.lv_on_disk.base + (i * sizeof(struct lv_disk));
 		ll = dm_pool_alloc(data->mem, sizeof(*ll));
 
@@ -295,7 +295,7 @@
 		if (!_check_lvd(&ll->lvd))
 			continue;
 
-		read++;
+		lvs_read++;
 		list_add(&data->lvds, &ll->list);
 	}
 


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

* LVM2 ./WHATS_NEW lib/format1/disk-rep.c
@ 2005-08-16 19:01 agk
  0 siblings, 0 replies; 4+ messages in thread
From: agk @ 2005-08-16 19:01 UTC (permalink / raw)
  To: lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2005-08-16 19:00:56

Modified files:
	.              : WHATS_NEW 
	lib/format1    : disk-rep.c 

Log message:
	Add format1 dev_write debug messages.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.286&r2=1.287
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/lib/format1/disk-rep.c.diff?cvsroot=lvm2&r1=1.54&r2=1.55


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

* LVM2 ./WHATS_NEW lib/format1/disk-rep.c
@ 2004-05-11 17:18 agk
  0 siblings, 0 replies; 4+ messages in thread
From: agk @ 2004-05-11 17:18 UTC (permalink / raw)
  To: lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2004-05-11 17:18:43

Modified files:
	.              : WHATS_NEW 
	lib/format1    : disk-rep.c 

Log message:
	A quick sanity check on vg_disk struct when read in.  More checks needed.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.28&r2=1.29
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/lib/format1/disk-rep.c.diff?cvsroot=lvm2&r1=1.51&r2=1.52


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

end of thread, other threads:[~2010-12-01 10:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 10:33 LVM2 ./WHATS_NEW lib/format1/disk-rep.c zkabelac
  -- strict thread matches above, loose matches on Subject: below --
2008-11-03 16:26 agk
2005-08-16 19:01 agk
2004-05-11 17:18 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).