opnsense-src/lib/geom
Alexander Motin 5f6a3a81f6 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

(cherry picked from commit 7f16b501e2)
2022-05-10 21:20:25 -04:00
..
cache
concat
eli geli(8): Do not report error on resize to the same size. 2021-09-16 21:39:07 -04:00
journal
label
mirror GEOM: Introduce partial confxml API 2022-05-10 21:20:25 -04:00
mountver Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
multipath *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-31 09:37:03 +02:00
nop gnop: change the "count until fail" option 2019-12-29 15:47:37 +00:00
part GEOM: Introduce partial confxml API 2022-05-10 21:20:25 -04:00
raid
raid3
shsec
stripe
virstor
Makefile
Makefile.classes Remove GEOM_SCHED class and gsched tool. 2019-12-29 21:16:03 +00:00
Makefile.inc