Skip to contentSkip to conversation

LVM2 lib/thin/thin.c libdm/libdevmapper.h libd ...

PATCH [email protected] 1 participant 1 message Oct 3, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-10-03 18:26:08

Modified files:
lib/thin : thin.c
libdm : libdevmapper.h libdm-deptree.c

Log message:
Transaction_id is property of thin_pool

Remove Transaction_id from thin target.
Store device_id for thin target.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/thin/thin.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdevmapper.h.diff?cvsroot=lvm2&r1=1.154&r2=1.155
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.115&r2=1.116

lib/thin/thin.c +1 -1
@@ -199,7 +199,7 @@
 		return 0;
 	}
 
-	if (!dm_tree_node_add_thin_target(node, len, 0, thin_pool_dlid, seg->device_id))
+	if (!dm_tree_node_add_thin_target(node, len, thin_pool_dlid, seg->device_id))
 		return_0;
 
 	return 1;
libdm/libdevmapper.h +0 -1
@@ -547,7 +547,6 @@
 
 int dm_tree_node_add_thin_target(struct dm_tree_node *node,
 				 uint64_t size,
-				 uint64_t transation_id,
 				 const char *thin_pool_uuid,
 				 uint32_t device_id);
 
libdm/libdm-deptree.c +2 -1
@@ -2690,7 +2690,6 @@
 
 int dm_tree_node_add_thin_target(struct dm_tree_node *node,
 				 uint64_t size,
-				 uint64_t transation_id,
 				 const char *thin_pool_uuid,
 				 uint32_t device_id)
 {
@@ -2713,6 +2712,8 @@
 	if (!_link_tree_nodes(node, seg->pool))
 		return_0;
 
+	seg->device_id = device_id;
+
 	return 1;
 }