mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Rename lvm_scan_vgs to lvm_scan.
Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
parent
93e025dcc4
commit
2572832e0c
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user