1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

Transaction_id is property of thin_pool

Remove Transaction_id from thin target.
Store device_id for thin target.
This commit is contained in:
Zdenek Kabelac 2011-10-03 18:26:07 +00:00
parent 87663d5f88
commit 1419bf1c98
3 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ static int _thin_add_target_line(struct dev_manager *dm,
return 0; 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_0;
return 1; return 1;

View File

@ -547,7 +547,6 @@ int dm_tree_node_add_thin_pool_target(struct dm_tree_node *node,
int dm_tree_node_add_thin_target(struct dm_tree_node *node, int dm_tree_node_add_thin_target(struct dm_tree_node *node,
uint64_t size, uint64_t size,
uint64_t transation_id,
const char *thin_pool_uuid, const char *thin_pool_uuid,
uint32_t device_id); uint32_t device_id);

View File

@ -2690,7 +2690,6 @@ int dm_tree_node_add_thin_pool_target(struct dm_tree_node *node,
int dm_tree_node_add_thin_target(struct dm_tree_node *node, int dm_tree_node_add_thin_target(struct dm_tree_node *node,
uint64_t size, uint64_t size,
uint64_t transation_id,
const char *thin_pool_uuid, const char *thin_pool_uuid,
uint32_t device_id) uint32_t device_id)
{ {
@ -2713,6 +2712,8 @@ int dm_tree_node_add_thin_target(struct dm_tree_node *node,
if (!_link_tree_nodes(node, seg->pool)) if (!_link_tree_nodes(node, seg->pool))
return_0; return_0;
seg->device_id = device_id;
return 1; return 1;
} }