Skip to contentSkip to conversation

LVM2/lib/activate activate.c

PATCH [email protected] 1 participant 1 message Jan 25, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-01-25 09:00:18

Modified files:
lib/activate : activate.c

Log message:
lv_info using -real layer only for origin_only LV

If the origin_only flag is passed for non lv_is_origin LVs, the extension is not added.

Thin volumes may also use origin_only flag.

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

lib/activate/activate.c +1 -1
@@ -552,7 +552,7 @@
 			fs_unlock(); /* For non clustered - wait if there are non-delete ops */
 	}
 
-	if (!dev_manager_info(lv->vg->cmd->mem, lv, origin_only ? "real" : NULL, with_open_count,
+	if (!dev_manager_info(lv->vg->cmd->mem, lv, (lv_is_origin(lv) && origin_only) ? "real" : NULL, with_open_count,
 			      with_read_ahead, &dminfo, &info->read_ahead))
 		return_0;