This is the mail archive of the lvm2-cvs@sourceware.org mailing list for the LVM2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

LVM2 ./WHATS_NEW lib/locking/cluster_locking.c


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	pcaulfield@sourceware.org	2006-06-12 09:46:35

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

Log message:
	Fix "Unaligned access" when using clvm
	bz#194626

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.397&r2=1.398
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/cluster_locking.c.diff?cvsroot=lvm2&r1=1.12&r2=1.13

Full Patch:
--- LVM2/WHATS_NEW	2006/06/08 22:15:49	1.397
+++ LVM2/WHATS_NEW	2006/06/12 09:46:34	1.398
@@ -13,6 +13,7 @@
   Add 'Completed' debug message.
   Don't attempt library exit after reloading config files.
   Always compile with libdevmapper, even if device-mapper is disabled.
+  Fixed unaligned access when using clvm.
 
 Version 2.02.06 - 12th May 2006
 ===============================
--- LVM2/lib/locking/cluster_locking.c	2006/05/16 16:48:30	1.12
+++ LVM2/lib/locking/cluster_locking.c	2006/06/12 09:46:35	1.13
@@ -256,7 +256,7 @@
 		strcpy(rarray[i].node, inptr);
 		inptr += strlen(inptr) + 1;
 
-		rarray[i].status = *(int *) inptr;
+		memcpy(&rarray[i].status, inptr, sizeof(int));
 		inptr += sizeof(int);
 
 		rarray[i].response = dm_malloc(strlen(inptr) + 1);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]