1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-30 10:50:34 +03:00

Rename lvm_reload_config to lvm_config_reload.

The general naming scheme for most liblvm APIs is:
lvm_<object>_<action>

As there are likely to be other things to do on the lvm 'config' object
(i.e. lvm_config_set_device_filter), we should use consistent naming.


Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-07-27 10:18:51 +00:00
parent 594fbed146
commit 5ec0df6fe1
2 changed files with 5 additions and 4 deletions

@ -119,8 +119,8 @@ struct lvm_str_list {
* the handle and any associated resources.
*
* \param system_dir
* Set an alternative LVM system directory. Use NULL to use the
* default value. If the environment variable LVM_SYSTEM_DIR is set,
* Set an alternative LVM system directory. Use NULL to use the
* default value. If the environment variable LVM_SYSTEM_DIR is set,
* it will override any LVM system directory setting.
* \return A valid LVM handle is returned or NULL if there has been a
* memory allocation problem. You have to check if an error occured
@ -146,7 +146,7 @@ void lvm_destroy(lvm_t libh);
* Handle obtained from lvm_create.
* \return 0 (success) or -1 (failure).
*/
int lvm_reload_config(lvm_t libh);
int lvm_config_reload(lvm_t libh);
/**
* Return stored error no describing last LVM API error.
@ -174,6 +174,7 @@ const char *lvm_errmsg(lvm_t libh);
/**
* Scan all devices on the system for VGs and LVM metadata.
* FIXME: Elaborate on when to use, side-effects, .cache file, etc
*
* \return 0 (success) or -1 (failure).
*/

@ -64,7 +64,7 @@ void lvm_destroy(lvm_t libh)
destroy_toolcontext((struct cmd_context *)libh);
}
int lvm_reload_config(lvm_t libh)
int lvm_config_reload(lvm_t libh)
{
/* FIXME: re-init locking needed here? */
if (refresh_toolcontext((struct cmd_context *)libh))