]> sourceware.org Git - lvm2.git/commit
Update error return and comments for lvm_list_vg_names/uuids.
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 27 Jul 2009 11:00:17 +0000 (11:00 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 27 Jul 2009 11:00:17 +0000 (11:00 +0000)
commit6765f241848da5532227c90c68c868b193e1f065
tree523635883b70eed1e7c6c9f87640698ccab5d679
parent5ec0df6fe1abef23e9048e4d3a960b8adf34e36c
Update error return and comments for lvm_list_vg_names/uuids.

The two liblvm functions that return a list of vgnames and vguuids use
cmd->mem to allocate the list.  Make it clear to the caller that this
memory will be freed when the LVM handle is freed.

Clean up and clarify the return value of the functions.  In the
case of a memory allocation error, add a couple log_errnos to the internal
code, and make it clear that memory allocation returns a NULL pointer.
If there are no VGs in the system, the list returned is an empty list.

Make a note of the fact that currently we return hidden VG names, how
these can be detected (always start with "#"), and that they should
not be used.

Author: Dave Wysochanski <dwysocha@redhat.com>
lib/cache/lvmcache.c
lib/datastruct/str_list.c
liblvm/lvm.h
liblvm/lvm_vg.c
This page took 0.036652 seconds and 5 git commands to generate.