Skip to contentSkip to conversation

master - libdm: maintain binary interface for new FEATURE flag

PATCH Zdenek Kabelac 1 participant 1 message Mar 10, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=bb20fac4ab65454dd4cabc90426546c25254d927
Commit:        bb20fac4ab65454dd4cabc90426546c25254d927
Parent:        ddd5a7680153486c4edebb8a7946827e7abe93a0
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Feb 24 22:41:42 2017 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Mar 10 19:33:01 2017 +0100

libdm: maintain binary interface for new FEATURE flag

Older library version was not detecting unknown 'feature' bits and could let start target without needed option.

New versioned symbol now checks for supported feature bits. _Base version keeps accepting only previously known features and mask/ignores unknown bits.

NB: if the older binary passed in 'random' bits, it will not get metadata2 by chance. New linked binary get new validation function. Library user is required to not pass 'trash' for unsupported bits, as such calls will be rejected.

---
 WHATS_NEW_DM                        |    1 +
 libdm/.exported_symbols.Base        |    1 -
 libdm/.exported_symbols.DM_1_02_138 |    1 +
 libdm/libdm-deptree.c               |   49 ++++++++++++++++++++++++++++++++---
 4 files changed, 47 insertions(+), 5 deletions(-)
WHATS_NEW_DM +1 -0
index 6a56b3d..91fd8f9 100644
@@ -1,5 +1,6 @@
 Version 1.02.138 - 
 =====================================
+  Provide dm_tree_node_add_cache_target at base compatible symbol.
   Support DM_CACHE_FEATURE_METADATA2, new cache metadata format 2.
   Improve code to handle mode mask for cache nodes.
   Cache status check for passthrough also require trailing space.
libdm/.exported_symbols.Base +0 -1
index ee7c4f2..4dc5c93 100644
@@ -234,7 +234,6 @@ dm_tree_free
 dm_tree_get_cookie
 dm_tree_children_use_uuid
 dm_tree_next_child
-dm_tree_node_add_cache_target
 dm_tree_node_add_crypt_target
 dm_tree_node_add_error_target
 dm_tree_node_add_linear_target
libdm/.exported_symbols.DM_1_02_138 +1 -0
index 0468294..21e9ad8 100644
@@ -6,3 +6,4 @@ dm_bitset_parse_list
 dm_stats_bind_from_fd
 dm_stats_start_filemapd
 dm_tree_node_add_raid_target_with_params_v2
+dm_tree_node_add_cache_target
libdm/libdm-deptree.c +45 -4

62 lines not on this page · raw message