summaryrefslogtreecommitdiff
path: root/lib/libgeom/geom_getxml.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Systems with lots of geom providers can end up with a kern.geom.confxmlBenno Rice2014-09-041-7/+34
| | | | | | | | | | | | value too large for the buffer allocated. Work around this by retrying a few times with larger buffer sizes. Submitted by: Scott Ferris <scott.ferris@isilon.com> Reviewed by: mlaier, ngie Sponsored by: EMC Isilon Storage Division Notes: svn path=/head/; revision=271085
* Add missing `void' keyword.Ed Schouten2009-12-311-1/+1
| | | | Notes: svn path=/head/; revision=201320
* - Simplify the procedure of retrieving XML-data from the kernel.Ulf Lilleengen2008-07-081-19/+13
| | | | | | | | | | | | | | | | - Fix a number of potential memory leaks in libgeom related to doing realloc without freeing old pointer if things go wrong. - Fix a number of places in libgeom where malloc and calloc return values were not checked. - Check malloc return value and provide sufficient warning messages when XML parsing fails. PR: kern/83464 Submitted by: Dan Lukes <dan - at - obluda.cz> Approved by: kib (mentor) Notes: svn path=/head/; revision=180369
* Second call of sysctl() is used to gather a proper size of a memory chunkWojciech A. Koszek2007-05-011-1/+1
| | | | | | | | | | | | | | needed to hold the GEOM tree. At this point, pointer 'p' has an improper value (as it was used previously), and we're getting EFAULT. Fix this functionality by passing NULL instead of 'p'. This fixes mdconfig(8) -l output with high number of md(4) devices. Found by: kris Reviewed by: phk Notes: svn path=/head/; revision=169162
* Leak more stuff into libgeom.Poul-Henning Kamp2003-02-101-0/+66
Notes: svn path=/head/; revision=110603