Skip to contentSkip to conversation

LVM2/lib/activate dev_manager.c

PATCH [email protected] 1 participant 1 message Dec 3, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at 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

lib/activate/dev_manager.c +4 -3
@@ -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;