diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2009-07-27 10:18:51 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2009-07-27 10:18:51 +0000 |
commit | f6b1eaf7005f847e3230537feb47306d68b17b44 (patch) | |
tree | 6e4ee7b126dfe27a7bf3ba1f5294c1ee2714dfb7 /liblvm | |
parent | c8fb043a014aed91fa15540980c8ca3d02c4fbb9 (diff) | |
download | lvm2-f6b1eaf7005f847e3230537feb47306d68b17b44.tar.gz lvm2-f6b1eaf7005f847e3230537feb47306d68b17b44.tar.xz lvm2-f6b1eaf7005f847e3230537feb47306d68b17b44.zip |
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>
Diffstat (limited to 'liblvm')
-rw-r--r-- | liblvm/lvm.h | 7 | ||||
-rw-r--r-- | liblvm/lvm_base.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/liblvm/lvm.h b/liblvm/lvm.h index acaaa0cb..328b33e4 100644 --- a/liblvm/lvm.h +++ b/liblvm/lvm.h @@ -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). */ diff --git a/liblvm/lvm_base.c b/liblvm/lvm_base.c index eb981ad5..3154846e 100644 --- a/liblvm/lvm_base.c +++ b/liblvm/lvm_base.c @@ -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)) |