master - cleanup: compile fixes for --disable-devmapper
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8e4db009b8f215cb7f593f4b76a6f4bd4293e2ca Commit: 8e4db009b8f215cb7f593f4b76a6f4bd4293e2ca Parent: 8012c223e0beb858bc2a6b1ea809c4a98a90a5c1 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Jun 3 12:38:46 2016 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Jun 3 12:46:43 2016 +0200
cleanup: compile fixes for --disable-devmapper
Make lvm2 compilable when configured with: --disable-devmapper.
--- WHATS_NEW | 1 + lib/activate/activate.c | 15 ++------------- lib/mm/memlock.c | 9 +++++++-- 3 files changed, 10 insertions(+), 15 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.155 - ================================ + Fix compilation error when building with configure --disable-devmapper. Fix lvmconfig --type diff to display complete diff if config cascade used. Automatically filter out partitioned loop devices with partscan (losetup -P). Fix lvm devtypes internal error if -S used with field name from pvs/vgs/lvs.
lib/activate/activate.c +2 -13
@@ -253,8 +253,9 @@ int lv_status(struct cmd_context *cmd, const struct lv_segment *lv_seg,int lv_cache_status (const struct logical_volume *cache_lv,struct lv_status_cache **status) { +return 0 ; } -int lv_check_not_in_use (const struct logical_volume *lv) +int lv_check_not_in_use (const struct logical_volume *lv,int error_if_used) {return 0 ; }
@@ -287,18 +288,6 @@ int lv_raid_message(const struct logical_volume *lv, const char *msg) {return 0 ; } -int lv_cache_block_info (struct logical_volume *lv, -uint32_t *chunk_size,uint64_t *dirty_count, -uint64_t *used_count,uint64_t *total_count) -{ -return 0 ; -} -int lv_cache_policy_info (struct logical_volume *lv, -const char **policy_name,int *policy_argc, -const char ***policy_argv) -{ -return 0 ; -}int lv_thin_pool_percent (const struct logical_volume *lv,int metadata,dm_percent_t *percent) {
lib/mm/memlock.c +7 -2
@@ -72,6 +72,11 @@ void memlock_reset(void) return; } +int memlock_count_daemon (void ) +{ +return 0 ; +} +#else /* DEVMAPPER_SUPPORT */ static size_t _size_stack;
@@ -645,9 +650,9 @@ void memlock_unlock(struct cmd_context *cmd) _unlock_mem_if_possible(cmd); } -#endif -int memlock_count_daemon (void ) {return _memlock_count_daemon; } + +#endif