mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
87663d5f88
commit
1419bf1c98
@ -199,7 +199,7 @@ static int _thin_add_target_line(struct dev_manager *dm,
|
||||
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;
|
||||
|
@ -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,
|
||||
uint64_t size,
|
||||
uint64_t transation_id,
|
||||
const char *thin_pool_uuid,
|
||||
uint32_t device_id);
|
||||
|
||||
|
@ -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,
|
||||
uint64_t size,
|
||||
uint64_t transation_id,
|
||||
const char *thin_pool_uuid,
|
||||
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))
|
||||
return_0;
|
||||
|
||||
seg->device_id = device_id;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user