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/tools toollib.c


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2006-11-03 21:23:06

Modified files:
	tools          : toollib.c 

Log message:
	fix shift

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/toollib.c.diff?cvsroot=lvm2&r1=1.94&r2=1.95

--- LVM2/tools/toollib.c	2006/11/03 21:07:15	1.94
+++ LVM2/tools/toollib.c	2006/11/03 21:23:06	1.95
@@ -1223,7 +1223,8 @@
 		return 0;
 
 	dev_set(dev, UINT64_C(0),
-		sectors ? (size_t) sectors >> SECTOR_SHIFT : (size_t) 4096, value);
+		sectors ? (size_t) sectors << SECTOR_SHIFT : (size_t) 4096,
+		value);
 	dev_flush(dev);
 	dev_close_immediate(dev);
 


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