1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/datastruct
Dave Wysochanski 0589e19fd7 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>
2009-07-27 11:00:17 +00:00
..
btree.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
btree.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
list.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
list.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
lvm-types.h more missing bits 2008-11-04 14:57:06 +00:00
str_list.c Update error return and comments for lvm_list_vg_names/uuids. 2009-07-27 11:00:17 +00:00
str_list.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00