mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvconvert: libdm RAID API compatibility versioning; remove new function
Commit 80a6de616a19 versioned the dm_tree_node_add_raid_target_with_params() and dm_tree_node_add_raid_target() APIs for compatibility reasons. There's no user of the latter function, remove it. Related: rhbz834579 Related: rhbz1191935 Related: rhbz1191978
This commit is contained in:
parent
48778bc503
commit
fb42874a4f
@ -3,5 +3,4 @@ dm_bit_get_prev
|
|||||||
dm_stats_update_regions_from_fd
|
dm_stats_update_regions_from_fd
|
||||||
dm_bitset_parse_list
|
dm_bitset_parse_list
|
||||||
dm_stats_bind_from_fd
|
dm_stats_bind_from_fd
|
||||||
dm_tree_node_add_raid_target_v2
|
|
||||||
dm_tree_node_add_raid_target_with_params_v2
|
dm_tree_node_add_raid_target_with_params_v2
|
||||||
|
@ -1723,15 +1723,6 @@ int dm_tree_node_add_raid_target(struct dm_tree_node *node,
|
|||||||
uint64_t rebuilds,
|
uint64_t rebuilds,
|
||||||
uint64_t flags);
|
uint64_t flags);
|
||||||
|
|
||||||
/* Version 2 coping with 253 (MD kernel limitation) devices */
|
|
||||||
int dm_tree_node_add_raid_target_v2(struct dm_tree_node *node,
|
|
||||||
uint64_t size,
|
|
||||||
const char *raid_type,
|
|
||||||
uint32_t region_size,
|
|
||||||
uint32_t stripe_size,
|
|
||||||
uint64_t *rebuilds,
|
|
||||||
uint64_t flags);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Defines below are based on kernel's dm-cache.c defines
|
* Defines below are based on kernel's dm-cache.c defines
|
||||||
* DM_CACHE_MIN_DATA_BLOCK_SIZE (32 * 1024 >> SECTOR_SHIFT)
|
* DM_CACHE_MIN_DATA_BLOCK_SIZE (32 * 1024 >> SECTOR_SHIFT)
|
||||||
|
@ -3386,26 +3386,6 @@ int dm_tree_node_add_raid_target_with_params_v2(struct dm_tree_node *node,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dm_tree_node_add_raid_target_v2(struct dm_tree_node *node,
|
|
||||||
uint64_t size,
|
|
||||||
const char *raid_type,
|
|
||||||
uint32_t region_size,
|
|
||||||
uint32_t stripe_size,
|
|
||||||
uint64_t *rebuilds,
|
|
||||||
uint64_t flags)
|
|
||||||
{
|
|
||||||
struct dm_tree_node_raid_params_v2 params = {
|
|
||||||
.raid_type = raid_type,
|
|
||||||
.region_size = region_size,
|
|
||||||
.stripe_size = stripe_size,
|
|
||||||
.flags = flags
|
|
||||||
};
|
|
||||||
|
|
||||||
memcpy(params.rebuilds, rebuilds, sizeof(params.rebuilds));
|
|
||||||
|
|
||||||
return dm_tree_node_add_raid_target_with_params_v2(node, size, ¶ms);
|
|
||||||
}
|
|
||||||
|
|
||||||
int dm_tree_node_add_cache_target(struct dm_tree_node *node,
|
int dm_tree_node_add_cache_target(struct dm_tree_node *node,
|
||||||
uint64_t size,
|
uint64_t size,
|
||||||
uint64_t feature_flags, /* DM_CACHE_FEATURE_* */
|
uint64_t feature_flags, /* DM_CACHE_FEATURE_* */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user