master - cleanup: improve error message
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=85cf5a23d265c10af7e69b5f85e06e75105d8f14 Commit: 85cf5a23d265c10af7e69b5f85e06e75105d8f14 Parent: 7b766b064837110a09d448376ea61af174260ae7 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue May 13 10:33:17 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue May 13 10:33:17 2014 +0200
cleanup: improve error message
Update impossile to happen error message.
--- lib/config/config.c | 2 +- lib/metadata/thin_manip.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
lib/config/config.c +1 -1
@@ -1767,7 +1767,7 @@ int get_default_allocation_thin_pool_chunk_size_CFG(struct cmd_context *cmd, struint32_t chunk_size;if (!(str =find_config_tree_str (cmd, allocation_thin_pool_chunk_size_policy_CFG, profile))) { -log_error (INTERNAL_ERROR "Cannot find profile." ); +log_error (INTERNAL_ERROR "Cannot find configuration." );return 0 ; }
lib/metadata/thin_manip.c +2 -2
@@ -376,7 +376,7 @@ int update_profilable_pool_params(struct cmd_context *cmd, struct profile *profiif (!(passed_args &PASS_ARG_CHUNK_SIZE )) {if (!(*chunk_size =find_config_tree_int (cmd, allocation_thin_pool_chunk_size_CFG, profile) *2 )) {if (!(str =find_config_tree_str (cmd, allocation_thin_pool_chunk_size_policy_CFG, profile))) { -log_error (INTERNAL_ERROR "Could not find profile." ); +log_error (INTERNAL_ERROR "Could not find configuration." );return 0 ; }if (!strcasecmp (str,"generic" ))
@@ -401,7 +401,7 @@ int update_profilable_pool_params(struct cmd_context *cmd, struct profile *profiif (!(passed_args &PASS_ARG_DISCARDS )) {if (!(str =find_config_tree_str (cmd, allocation_thin_pool_discards_CFG, profile))) { -log_error (INTERNAL_ERROR "Could not find profile." ); +log_error (INTERNAL_ERROR "Could not find configuration." );return 0 ; }if (!get_pool_discards (str, discards))