diff options
Diffstat (limited to 'liblvm/lvm2app.h')
-rw-r--r-- | liblvm/lvm2app.h | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/liblvm/lvm2app.h b/liblvm/lvm2app.h index 317911d..b758945 100644 --- a/liblvm/lvm2app.h +++ b/liblvm/lvm2app.h @@ -303,6 +303,28 @@ int lvm_config_reload(lvm_t libh); int lvm_config_override(lvm_t libh, const char *config_string); /** + * Find a boolean value in the LVM configuration. + * + * \memberof lvm_t + * + * This function finds a boolean value associated with a path + * in current LVM configuration. + * + * \param libh + * Handle obtained from lvm_init(). + * + * \param config_path + * A path in LVM configuration + * + * \param fail + * Value to return if the path is not found. + * + * \return + * boolean value for 'config_path' (success) or the value of 'fail' (error) + */ +int lvm_config_find_bool(lvm_t libh, const char *config_path, int fail); + +/** * Return stored error no describing last LVM API error. * * \memberof lvm_t @@ -1321,6 +1343,22 @@ int lvm_lv_remove_tag(lv_t lv, const char *tag); */ struct dm_list *lvm_lv_get_tags(const lv_t lv); +/** + * Rename logical volume to new_name. + * + * \memberof lv_t + * + * \param lv + * Logical volume handle. + * + * \param new_name + * New name of logical volume. + * + * \return + * 0 (success) or -1 (failure). + * + */ +int lvm_lv_rename(lv_t lv, const char *new_name); /** * Resize logical volume to new_size bytes. @@ -1591,7 +1629,8 @@ typedef enum { PERCENT_0 = 0, PERCENT_1 = 1000000, PERCENT_100 = 100 * PERCENT_1, - PERCENT_INVALID = -1 + PERCENT_INVALID = -1, + PERCENT_MERGE_FAILED = -2 } percent_range_t; typedef int32_t percent_t; |