#
b3e76948 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
eb8f8877 |
|
10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-3-Clause-FreeBSD identifier never was, drop -FreeBSD There never was a BSD-3-Clause-FreeBSD SPDX identifier. Replace it with BSD-3-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
|
#
7f16b501 |
|
12-Mar-2022 |
Alexander Motin <mav@FreeBSD.org> |
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
|
#
2117cdd4 |
|
07-Mar-2022 |
Alexander Motin <mav@FreeBSD.org> |
GEOM: Introduce gctl_add_param() API. Make gctl_add_param() API public, allowing more precise control over parameter flags. Previously it was impossible to properly declare write-only ASCII parameters, used for result reporting, they were declared as read-write binary instead, that was not nice. MFC after: 1 month
|
#
3874c0ab |
|
07-Jul-2021 |
Alan Somers <asomers@FreeBSD.org> |
[skip ci] correct a few SPDX license tags These were all incorrectly labeled as 2-clause BSD licenses by a semi-automated process, when in fact they are 3-clause. Discussed with: pfg, imp MFC after: 2 weeks Sponsored by: Axcient
|
#
5e53a4f9 |
|
25-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
lib: further adoption of SPDX licensing ID tags. 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.
|
#
748e404f |
|
19-Jul-2013 |
Scott Long <scottl@FreeBSD.org> |
Since there's no defined schema for the XML that's generated by the kern.geom.confxml sysctl, it's silly to warn about tags in libgeom, especially since libgeom exists simply to build a tree out of the conf information. Obtained from: Netflix MFC after: 3 days
|
#
019100de |
|
10-Apr-2012 |
Juli Mallett <jmallett@FreeBSD.org> |
Back out r233646. Although it fixed most libgeom consumers under 32-bit compatibility, it broke programs using devstat, under 32-bit compatibility and not. It's very difficult to fix the identifiers used by devstat, so this change is simply being backed out. Since changes to 3rd-party code seem likely, and may be necessary to properly fix 32-bit binaries on 64-bit kernel, it would seem better to make more invasive changes to fix GEOM's problems with 32-bit compatibility in general. The right thing to do is to replace all of the use of pointers as opaque identifiers with a fixed-size (64-bit or even 32-bit should be enough for tracking unique GEOM elments) field. That probably maintains source compatibility with most GEOM consumers, and allows xml2tree to make better assumptions about how to decode the identifiers. Submitted by: Anton Yuzhaninov
|
#
3dce589c |
|
28-Mar-2012 |
Juli Mallett <jmallett@FreeBSD.org> |
Fix 32-bit libgeom consumers run on 64-bit kernels with COMPAT_FREEBSD32. Kernel pointer values are used as opaque unique identifiers, which are then used to reconstruct references between various providers, classes, etc., inside libgeom from the source XML. Unfortunately, they're converted to pointer-width integers (in the form of pointers) to do this, and 32-bit userland pointers cannot hold sensible representations (however opaque) of 64-bit kernel pointers on all systems. In the case where the leading bits are zero and 32 distinct bits of pointer can be identified, this will happen to work. On systems where the upper 32-bits of kernel pointers are non-zero and the same for all kernel pointers, this will result in double frees and all kinds of bizarre crashes and linkage between objects inside libgeom. To mitigate this problem, treat the opaque identifiers in the XML as C strings instead, and internalize them to give unique and consistent per-object pointer values in userland for each identifier in the XML. This allows us to keep the libgeom logic the same with only minor changes to initial setup and parsing. It might be more sensible for speed reasons to treat the identifiers as numbers of a large size (uintmax_t, say) rather than strings, but strings seem fine for now. (As an added side-effect, this makes it slightly easier to identify unresolved references, but nothing has been added to inform the user of those.)
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
35daa28f |
|
16-Jan-2010 |
Xin LI <delphij@FreeBSD.org> |
Expose stripe offset and stripe size through libgeom and geom(8) userland utilities. Reviewed by: pjd, mav (earlier version)
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
f805f204 |
|
07-Sep-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Add a new ioctl for getting the provider name of a geom provider. - Add a routine for looking up a device and checking if it is a valid geom provider given a partial or full path to its device node. Reviewed by: phk Approved by: pjd (mentor)
|
#
5f145b19 |
|
06-May-2007 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Remove parameter names from prototypes to avoid namespace issues.
|
#
fbda685d |
|
05-May-2007 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Implement and document some utility functions that can be used to communicate with GEOM providers. OK'ed by: phk
|
#
ccac9da4 |
|
09-Mar-2004 |
John Baldwin <jhb@FreeBSD.org> |
Make libgeom usable by C++ programs: - Add DECL wrappers to libgeom.h. - Rename structure members in libgeom.h to use a lg_ prefix for member names. This is required because a few structures had members named 'class' which made g++ very unhappy. - Catch gstat(8) and gconcat(8) up to these API changes. Reviewed by: phk
|
#
7e02e189 |
|
01-Jun-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add the part of the last commit which cvs appearantly didn't like the first time.
|
#
64a5766e |
|
22-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Collapse the meta arguments into normal arguments, trying to distinguish just makes our own life harder.
|
#
63728c47 |
|
27-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Run a revision on the OAM api. Use prefix gctl_ systematically. Add flag with access perms for each argument. Add ro/rw versions of argument building functions. General cleanup.
|
#
4b8938c1 |
|
23-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add marshalling functions for OAM api.
|
#
2892a228 |
|
18-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Use devstat instead of GEOM private statistics structure.
|
#
2ad2651a |
|
17-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Constify arg to geom_lookupid(). Improve a diagnostic printf.
|
#
7bd4e7b4 |
|
09-Feb-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Leak more stuff into libgeom.
|
#
ba798fb2 |
|
08-Feb-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Include <sys/time.h>, it's not the users problem that we use bintime internally.
|
#
e13db587 |
|
08-Feb-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add libgeom to the system. Initially this only contains the functions for accessing the I/O statistics data.
|