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/lib/activate dev_manager.c


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2007-12-03 18:00:38

Modified files:
	lib/activate   : dev_manager.c 

Log message:
	fix changed parms

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.129&r2=1.130

--- LVM2/lib/activate/dev_manager.c	2007/11/29 15:04:12	1.129
+++ LVM2/lib/activate/dev_manager.c	2007/12/03 18:00:38	1.130
@@ -142,9 +142,10 @@
 	if (!dm_task_get_info(dmt, info))
 		goto_out;
 
-	if (with_read_ahead)
-		*read_ahead = dm_task_get_read_ahead(dmt);
-	else if (read_ahead)
+	if (with_read_ahead) {
+		if (!dm_task_get_read_ahead(dmt, read_ahead))
+			goto_out;
+	} else if (read_ahead)
 		*read_ahead = DM_READ_AHEAD_NONE;
 
 	r = 1;


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