diff --git a/liblvm/.exported_symbols b/liblvm/.exported_symbols index f40341e71..d0e87df64 100644 --- a/liblvm/.exported_symbols +++ b/liblvm/.exported_symbols @@ -22,7 +22,7 @@ lvm_vg_write lvm_vg_open lvm_vg_close lvm_vg_remove -lvm_scan_vgs +lvm_scan lvm_errno lvm_errmsg lvm_vg_list_pvs diff --git a/liblvm/lvm.h b/liblvm/lvm.h index 4b1155f7a..33fe9ac5b 100644 --- a/liblvm/lvm.h +++ b/liblvm/lvm.h @@ -176,7 +176,7 @@ const char *lvm_errmsg(lvm_t libh); * * \return Status code of 1 (success) or 0 (failure). */ -int lvm_scan_vgs(lvm_t libh); +int lvm_scan(lvm_t libh); /*************************** volume group handling **************************/ @@ -184,7 +184,7 @@ int lvm_scan_vgs(lvm_t libh); * Return the list of volume group names. * * NOTE: This function will _NOT_ scan devices in the system for LVM metadata. - * To scan the system, use lvm_scan_vgs. + * To scan the system, use lvm_scan. * * To process the list, use the dm_list iterator functions. For example: * vg_t *vg; @@ -211,7 +211,7 @@ struct dm_list *lvm_list_vg_names(lvm_t libh); * Return the list of volume group uuids. * * NOTE: This function will _NOT_ scan devices in the system for LVM metadata. - * To scan the system, use lvm_scan_vgs. + * To scan the system, use lvm_scan. * * \param libh * Handle obtained from lvm_create. diff --git a/liblvm/lvm_vg.c b/liblvm/lvm_vg.c index 5307d7fe4..423a4833a 100644 --- a/liblvm/lvm_vg.c +++ b/liblvm/lvm_vg.c @@ -252,7 +252,7 @@ struct dm_list *lvm_list_vg_uuids(lvm_t libh) return get_vgids((struct cmd_context *)libh, 0); } -int lvm_scan_vgs(lvm_t libh) +int lvm_scan(lvm_t libh) { return lvmcache_label_scan((struct cmd_context *)libh, 2); } diff --git a/test/api/test.c b/test/api/test.c index f8e73ed8a..289278dee 100644 --- a/test/api/test.c +++ b/test/api/test.c @@ -264,7 +264,7 @@ static void _pvs_in_vg(char **argv, int argc) static void _scan_vgs(lvm_t libh) { - lvm_scan_vgs(libh); + lvm_scan(libh); } static void _list_vg_names(lvm_t libh)