1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

Support 64bit ints in config

This commit is contained in:
Zdenek Kabelac 2011-02-18 14:08:22 +00:00
parent c054e7cc56
commit 9dd091e4f4
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.85 -
===================================
Add function to read 64bit ints from config find_config_tree_int64.
Fix to make resuming exclusive cluster mirror use local target type.
Version 2.02.84 - 9th February 2011

View File

@ -1049,6 +1049,12 @@ int find_config_tree_int(struct cmd_context *cmd, const char *path,
return (int) _find_config_int64(cmd->cft_override ? cmd->cft_override->root : NULL, cmd->cft->root, path, (int64_t) fail);
}
int64_t find_config_tree_int64(struct cmd_context *cmd, const char *path, int64_t fail)
{
return _find_config_int64(cmd->cft_override ? cmd->cft_override->root : NULL,
cmd->cft->root, path, fail);
}
float find_config_tree_float(struct cmd_context *cmd, const char *path,
float fail)
{

View File

@ -95,6 +95,8 @@ const char *find_config_tree_str(struct cmd_context *cmd,
const char *path, const char *fail);
int find_config_tree_int(struct cmd_context *cmd, const char *path,
int fail);
int64_t find_config_tree_int64(struct cmd_context *cmd, const char *path,
int64_t fail);
float find_config_tree_float(struct cmd_context *cmd, const char *path,
float fail);