1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: compile fixes for --disable-devmapper

Make lvm2 compilable when configured with: --disable-devmapper.
This commit is contained in:
Zdenek Kabelac 2016-06-03 12:38:46 +02:00
parent 8012c223e0
commit 8e4db009b8
3 changed files with 10 additions and 15 deletions

View File

@ -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.

View File

@ -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)
{

View File

@ -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