summaryrefslogtreecommitdiffstats
path: root/lib/datastruct
Commit message (Collapse)AuthorAgeFilesLines
* Switch to return voidZdenek Kabelac2012-02-082-8/+5
| | | | List delete cannot fail, so there is no reason to test for error.
* Revert the #include changes. Need to fix this at the #include site for now, andPetr Rockai2011-07-181-1/+0
| | | | eventually refactor the way we structure #includes in the all of the library.
* Add a missing libdevmapper.h #include to lvm-types.h (for dm_list).Petr Rockai2011-07-181-0/+1
|
* Better const cast logicZdenek Kabelac2011-04-081-4/+4
| | | | (although still gcc gives const violation warning)
* Some const cleanupsZdenek Kabelac2010-12-201-1/+1
| | | | Minor const warning fixes and internal API updates.
* Preserve const for char pointerZdenek Kabelac2010-11-112-2/+2
| | | | Keep char pointers 'const' (introduced with cling commit).
* Extend cling allocation policy to recognise PV tags (cling_by_tags).Alasdair Kergon2010-11-092-4/+8
| | | | Add allocation/cling_tag_list to lvm.conf.
* Remove unnecessary / duplicate dm_list macros and functions.Dave Wysochanski2009-11-252-353/+0
| | | | | | | | | These are no longer used by anyone. The dm_list defines are all in libdevmapper.h and libdm/datastruct/list.c contains any function definitions. There is some code in "old-tests" that still use this but this code is not being maintained. Thanks to Zdenek for spotting this.
* Update error return and comments for lvm_list_vg_names/uuids.Dave Wysochanski2009-07-271-2/+4
| | | | | | | | | | | | | | | | | | 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>
* more missing bitsAlasdair Kergon2008-11-041-2/+0
|
* Right, a simple build (without options) is working again.Alasdair Kergon2008-11-035-97/+97
|
* Improve file descriptor leak detection to display likely culprit and filename.Alasdair Kergon2008-08-011-0/+1
|
* make list_move consistent with other list fnsAlasdair Kergon2008-04-102-8/+12
|
* Add list_move() support function for list manipulation.Dave Wysochanski2008-03-261-0/+10
|
* Some whitespace tidy-ups.Alasdair Kergon2008-01-301-1/+1
|
* Use stack return macros throughout.Alasdair Kergon2008-01-302-20/+10
|
* Fix strdup memory leak in str_list_dup().Alasdair Kergon2007-09-171-1/+1
|
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-207-22/+22
|
* Add "const" attributes where possible: first cut.Jim Meyering2007-08-076-33/+36
|
* Fix warnings on x86_64 involving ptrdiff_t:Dave Wysochanski2007-04-261-0/+1
| | | | | | config/config.c:493: warning: format '%d' expects type 'int', but argument 5 has type 'long int' Modified original patch from Jim Meyering <jim@meyering.net>
* remove inlinesAlasdair Kergon2006-04-191-0/+136
|
* Check for libsepol.Alasdair Kergon2006-04-192-68/+13
| | | | | | Add some cflow & scope support. Separate out DEFS from CFLAGS. Remove inlines and use unique function names.
* Use hash, bitset, malloc, pool from libdevmapper.Alasdair Kergon2005-10-169-475/+33
|
* Option for bitset memory allocation using malloc as well as pool.Alasdair Kergon2005-09-161-1/+10
|
* Basic support for mirrors.Alasdair Kergon2005-06-011-0/+27
|
* Fix contiguous allocations with linear.Alasdair Kergon2005-05-111-0/+8
|
* %Zu->zuAlasdair Kergon2005-05-091-1/+1
|
* more refinementsAlasdair Kergon2005-04-061-9/+10
|
* Annotate, tidy and extend list.h.Alasdair Kergon2005-04-061-9/+99
|
* Extend hash functions to handle non-null-terminated data.Alasdair Kergon2004-06-182-22/+48
|
* Update copyright notices.Alasdair Kergon2004-03-3010-20/+110
|
* More str_list fns.Alasdair Kergon2004-03-082-0/+41
|
* Don't inline hash _findAlasdair Kergon2004-02-131-1/+1
|
* more str_list fnsAlasdair Kergon2003-10-152-11/+46
|
* str_list_delAlasdair Kergon2003-10-152-0/+14
|
* Extract some common functions.Alasdair Kergon2003-09-172-0/+49
|
* Improve segment merge/split code.Alasdair Kergon2003-09-151-13/+17
|
* Another sync point - numerous fixes & clean ups.Alasdair Kergon2003-07-042-1/+9
|
* list_nextAlasdair Kergon2003-05-061-0/+5
|
* Improve build robustness.Alasdair Kergon2003-04-151-3/+6
|
* size_t tidyingAlasdair Kergon2003-04-021-5/+1
|
* Tidy various pre-processing incl. making libdl optional.Alasdair Kergon2003-03-245-8/+6
|
* Fix (rare) cache bug on machines with large /dev directories.Alasdair Kergon2003-01-101-18/+6
|
* o Additional device/filter-level debugging messages + duplicate alias fixAlasdair Kergon2003-01-081-0/+7
| | | | o 32/64-bit size_t fix (pjc)
* Default stripesize 64k & config file setting for it;Alasdair Kergon2002-12-196-17/+14
| | | | | | Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-) (Same exercise required for other archs.) Default compilation has optimisation - or else use ./configure --enable-debug
* New column-based reporting tools: lvs, pvs & vgs.Alasdair Kergon2002-12-121-7/+18
|
* Refactoring.Alasdair Kergon2002-11-185-23/+33
|
* Merge with text format branch.Alasdair Kergon2002-04-243-30/+35
| | | | | | | | | | | | | | | | | | | Lots of changes/very little testing so far => there'll be bugs! Use 'vgcreate -M text' to create a volume group with its metadata stored in text files. Text format metadata changes should be reasonably atomic, with a (basic) automatic recovery mechanism if the system crashes while a change is in progress. Add a metadata section to lvm.conf to specify multiple directories if you want (recommended) to keep multiple copies of the metadata (eg on different filesystems). e.g. metadata { dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"] } Plenty of refinements still in the pipeline.
* o Added a macro called hash_iterate, that is similar to list_iterateJoe Thornber2002-02-252-2/+6
| | | | o Renamed hash_iterate function, hash_iter.
* Add list_iterate that's safe with deletions.Alasdair Kergon2002-01-291-1/+4
|