freebsd-src/lib/geom
Alexander Motin 7f16b501e2 GEOM: Introduce partial confxml API
Traditionally the GEOM's primary channel of information from kernel to
user-space was confxml, fetched by libgeom through kern.geom.confxml
sysctl.  It is convenient and informative, representing full state of
GEOM in a single XML document.  But problems start to arise on systems
with hundreds of disks, where the full confxml size reaches many
megabytes, taking significant time to first write it and then parse.

This patch introduces alternative solution, allowing to fetch much
smaller XML document, subset of the full confxml, limited to 64KB and
representing only one specified geom and optionally its parents.  It
uses existing GEOM control interface, extended with new "getxml" verb.
In case of any error, such as the buffer overflow, it just transparently
falls back to traditional full confxml.  This patch uses the new API in
user-space GEOM tools where it is possible.

Reviewed by:	imp
MFC after:	2 month
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D34529
2022-03-12 11:55:52 -05:00
..
cache
concat gconcat: Implement new online append feature 2021-06-14 11:42:03 -06:00
eli geli(8): Do not report error on resize to the same size. 2021-08-18 17:11:03 -04:00
journal
label
mirror GEOM: Introduce partial confxml API 2022-03-12 11:55:52 -05:00
mountver Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
multipath gmultipath.8: Fix a typo 2021-12-10 14:33:34 +01:00
nop gnop: change the "count until fail" option 2019-12-29 15:47:37 +00:00
part GEOM: Introduce partial confxml API 2022-03-12 11:55:52 -05:00
raid
raid3
shsec
stripe
union Create a new GEOM utility, gunion(8). 2022-02-28 16:36:08 -08:00
virstor libgeom(3): Use calloc instead of malloc and bzero. 2022-03-11 10:38:16 +01:00
Makefile
Makefile.classes Create a new GEOM utility, gunion(8). 2022-02-28 16:36:08 -08:00
Makefile.inc