aboutsummaryrefslogtreecommitdiff
path: root/lib/geom
Commit message (Collapse)AuthorAgeFilesLines
* graid.8: fix typoMiroslav Cimerman2025-04-281-1/+1
| | | | | | Signed-off-by: Miroslav Cimerman <mc@doas.su> Reviewed-by: imp@FreeBSD.org Pull-request: https://github.com/freebsd/freebsd-src/pull/1680
* The UMA man page is lowercased. Reference it as uma.9 to avoid 404.Jens Schweikhardt2025-04-171-1/+1
|
* gpart: Stop documenting freebsd-vinum partition typesJohn Baldwin2025-02-111-10/+1
| | | | | | | | Support for the partition types is still retained so that tools can display existing partitions. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D48535
* Remove references to gvinum(8) in various manpagesJohn Baldwin2025-01-235-11/+6
| | | | | Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D48540
* lib/geom: remove redundant libraries and objectsRobert Clausecker2024-10-1516-20/+2
| | | | | | | | | | | Do not link lib/geom/raid with libmd, it is not required for the module. Do not include the sha256/sha512 code in lib/geom/eli, it is provided by libmd. Remove ${.CURDIR:H:H}/misc from .PATH for all modules. This path has stopped being valid when the GEOM modules were moved from sbin/geom to lib/geom. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D47061
* Update Makefile.depend filesSimon J. Gerraty2024-10-141-2/+0
| | | | | | | After building packages we have a number of new and updated Makefile.depend files Reviewed by: stevek
* gpart: Add u-boot-env alias for U-Boot's environment GPT partition UUIDJessica Clarke2024-09-021-1/+6
| | | | | | This is a platform-independent UUID, and this is the name U-Boot uses. MFC after: 1 week
* Remove residual blank line at start of MakefileWarner Losh2024-07-1519-19/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* virstor: remove relation between chunk size and MAXPHYSRyan Libby2024-06-111-26/+14
| | | | | | | | | | There's no reason why the virstor chunk size needs to relate to MAXPHYS. Remove it. Instead, just make sure that the chunk size is a multiple of the sector size. Reviewed by: imp Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D45518
* virstor: write large maps in chunks during labelRyan Libby2024-06-111-16/+43
| | | | | | | | | | | | | During the initial label of a virstor device, write out the allocation map in chunks if it is large (> 1 MB) in order to avoid large mallocs. Even though the kernel virstor geom may still do a large malloc to represent the allocation map, this may still be useful to avoid a ulimit. Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D45517
* glabel.8: Describe cases related to permissions / existing mountsChris Moerz2024-05-211-6/+19
| | | | | | | | | | | | | | | | | Specially, note some requirements for label changes: - glabel requires write permission on device - filesystems first need to be unmounted for new labels to persist across reboots - if the affected device node holds the filesystem root, single-user mode with r/o mount will be required. Also, while here, apply some formatting tweaks. PR: 276724 Reported by: Alex Matei <matei35@yahoo.com> Reviewed by: gbe, jrm, Alexander Ziaee <concussious@runbox.com> Differential Revision: https://reviews.freebsd.org/D44394
* man filesystems: fix xrefs after move to section 4Alexander Ziaee2024-05-161-1/+1
| | | | | Reviewed by: des, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1077
* Remove cross-references to GBDEPoul-Henning Kamp2024-05-072-3/+0
|
* glabel: Add support for Linux swapRicardo Branco2024-04-291-0/+3
| | | | | Reviewed by: imp, kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1205
* geli.8: add some notes regarding performance tuningAlan Somers2024-04-241-1/+41
| | | | | | | MFC after: 1 week Sponsored by: Axcient Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D44908
* geli.8: minor proofreadingAlan Somers2024-04-221-3/+3
| | | | | | | MFC after: 3 days Sponsored by: Axcient Reviewed by: imp, pauamma (manpages) Differential Revision: https://reviews.freebsd.org/D44907
* glabel: Remove support for old reiserfsRicardo Branco2024-04-191-4/+1
| | | | | Reviewed by: imp, emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1101
* gjournal(8): standardize capitalization for consistencyCheng-Hsun Lin2024-02-131-1/+1
| | | | | Event: Advanced UNIX Programming Course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1017
* lib: Automated cleanup of cdefs and other formattingWarner Losh2023-11-2712-12/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* glabel.8: Warn against using generic labels on a shared deviceMark Johnston2023-09-271-1/+21
| | | | | | | | | | Also suggest against creating a generic label on a device which already contains a filesystem. PR: 264166 Reviewed by: imp, delphij, Pau Amma <pauamma@gundo.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35326
* geli: Fix geli setkey -J for detached providersArjan de Vet2023-08-281-0/+6
| | | | | | | | | Clear cached_passphrase before generating a new key, otherwise the operation nonsensically tries to reuse the old passphrase. PR: 254966 Pull Request: https://github.com/freebsd/freebsd-src/pull/780 MFC after: 1 week
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-1616-32/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-1635-35/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-1616-31/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* base: Remove support for the VTOC8 partitioning schemeMarius Strobl2023-07-262-158/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | The removal of the sparc64 support in February 2020 obsoleted the VTOC8 partitioning scheme as no other FreeBSD platform makes use of it. Moreover, the code is bitrotting as nothing defines e. g. LOADER_VTOC8_SUPPORT any more and, thus, should go now, too. With this change, the following commits are reverted as far as VTOC8 is concerned and parts haven't already previously been deleted along with prior sparc64 removals: 094fcb157d4c98211899cf09d06e2cf19149b7e0 a7d366e9589c95feda6f3bc78c59c6355d51f126 ba8d50d08b9df4e8213f9a6997ff6792ecebcd9b The alignment example d9711c28efc4ec89ba5ea11f8fd63e9d0a7fc81b added to the VTOC8 section of gpart.8 is folded into the MBR one. This should finally conclude the deorbit of sparc64-specific bits. We had joy, we had fun we ran Unix on a Sun. But that source and the song of FreeBSD have all gone. Credits to Michael Bueker for the original "Unix on a Sun" and Rod McKuen for the "Seasons in the Sun" lyrics.
* geom: Migrate from COMPAT_32BIT to generic COMPAT_libcompatJessica Clarke2023-07-091-2/+2
| | | | | | | | See commit 8fad2cda93c7 ("bsd.compat.mk: Provide new CPP and sub-make variables") for the context behind this change. Reviewed by: imp, brooks, jhb Differential Revision: https://reviews.freebsd.org/D40927
* gpart(8): slices are out of context for GPTGraham Perrin2023-07-071-2/+2
| | | | | | | | | | Correct the GPT example. Creation of a partition leaves free the rest of the device (not the slice). Approved-by: imp Fixes: ae1b731b5df0 Rewrite the GPT and MBR examples. For GPT, ensure that the boot partition is large enough for gptzfsboot, which has doubled in size since 10. MFC after: 1 week Pull-request: https://github.com/freebsd/freebsd-src/pull/795
* gpart(8): Improve manual page syntaxTom Hukins2023-06-021-19/+48
| | | | | | | Fix various warnings from `mandoc -Tlint lib/geom/part/gpart.8`. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/702
* gpart(8): Refer to a related manual pageTom Hukins2023-06-021-2/+4
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/702
* geli: fix typoMariusz Zaborski2023-05-151-1/+1
| | | | | | PR: 271396 Reported by: Tim Chase <freebsd@tim.thechases.com> MFC after: 1 week
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-1218-18/+18
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-1915-30/+0
|
* geli: split the initalization of HMACMariusz Zaborski2023-02-081-18/+54
| | | | | | | | | | | | | | | | GELI allows to read a user key from a standard input. However if user initialize multiple providers at once, the standard input will be empty for the second and next providers. This caused GELI to encrypt a master key with an empty key file. This commits initialize the HMAC with the key file, and then reuse the finalized structure to generate different encryption keys for different providers. Reported by: Nathan Dorfman Tested by: philip Security: FreeBSD-SA-23:01.geli Security: CVE-2023-0751
* pkgbase: Put geom utilities in their own packageEmmanuel Vadot2022-10-2616-16/+16
| | | | | | | | For most users it's not needed to boot and they are also available in the FreeBSD-rescue package in case an update break and FreeBSD-geom package isn't updated correctly. Differential Revision: https://reviews.freebsd.org/D36224
* Add information on how to load gmirror on boot to auto activate mirrorsBenedict Reuschling2022-10-051-1/+17
| | | | | | | PR: 234997 Reported by: Michiel van Baak <michiel@vanbaak.eu> Event: Aberdeen Hackathon 2022 Differential Revision: https://reviews.freebsd.org/D20577
* Fix dead reference to boot0(8) to point to boot0cfg(8).Jens Schweikhardt2022-09-161-1/+1
|
* gmirror.8: Remove references rc.earlyMateusz Piotrowski2022-07-211-8/+13
| | | | | | | | | | | | | | | | | | | | | The manual page of gmirror describes how gmirror providers can be used for kernel dumps. Unfortunately, the instruction references /etc/rc.early, which is no longer a part of rc(8). Remove references to rc.early and suggest creating an rc(8) service script instead. Future work: In the Problem Report on Bugzilla, Lawrence Chen suggested adding example rc(8) scripts to the gmirror. However, those examples need to be tested before they become official reference examples in the base. Also, those scripts should probably land directly to /etc/rc.d, /usr/share/examples/rc.d, or /usr/share/examples/gmirror instead of the gmirror manual page. PR: 178818 Reported by: Lawrence Chen <beastie@tardisi.com> Fixes: dd2b024a336f Removal of early.sh MFC after: 1 week
* geli: Add a chicken switch for unmapped I/OMark Johnston2022-04-181-1/+7
| | | | | | | | | | | | We have a report of a panic in GELI that appears to go away when unmapped I/O is disabled. Add a tunable to make such investigations easier in the future. No functional change intended. PR: 262894 Reviewed by: asomers MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34944
* *: Do not use the no-op -r flag for bsdlabel(8)Mateusz Piotrowski2022-03-171-2/+2
| | | | | | | | | | | | | | | The -r flag is ignored by the FreeBSD implementation of bsdlabel(8) (also called disklabel(8) in the past). Remove its use from examples and tests in the tree. This commit does not touch historical documentation under share/doc/smm and files under contrib/netbsd-tests. Reviewed by: imp MFC after: 2 weeks Approved by: imp (src) Fixes: 57dfbec57b6d More axe-work: Differential Revision: https://reviews.freebsd.org/D34585
* GEOM: Introduce partial confxml APIAlexander Motin2022-03-122-57/+59
| | | | | | | | | | | | | | | | | | | | | | 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
* libgeom(3): Use calloc instead of malloc and bzero.Hans Petter Selasky2022-03-111-2/+1
| | | | | | Pull Request: https://github.com/freebsd/freebsd-src/pull/546 MFC after: 1 week Sponsored by: NVIDIA Networking
* gpart: Avoid geom_gettree() call in "bootcode -b".Alexander Motin2022-03-081-22/+23
| | | | | | | geom_gettree() may be pretty expensive on large systems, and it is not needed if only -b flag specified, that is processed by kernel. MFC after: 1 month
* GEOM: Introduce gctl_add_param() API.Alexander Motin2022-03-071-2/+3
| | | | | | | | | 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
* Create a new GEOM utility, gunion(8).Kirk McKusick2022-03-015-0/+431
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gunion(8) utility is used to track changes to a read-only disk on a writable disk. Logically, a writable disk is placed over a read-only disk. Write requests are intercepted and stored on the writable disk. Read requests are first checked to see if they have been written on the top (writable disk) and if found are returned. If they have not been written on the top disk, then they are read from the lower disk. The gunion(8) utility can be especially useful if you have a large disk with a corrupted filesystem that you are unsure of how to repair. You can use gunion(8) to place another disk over the corrupted disk and then attempt to repair the filesystem. If the repair fails, you can revert all the changes in the upper disk and be back to the unchanged state of the lower disk thus allowing you to try another approach to repairing it. If the repair is successful you can commit all the writes recorded on the top disk to the lower disk. Another use of the gunion(8) utility is to try out upgrades to your system. Place the upper disk over the disk holding your filesystem that is to be upgraded and then run the upgrade on it. If it works, commit it; if it fails, revert the upgrade. Further details can be found in the gunion(8) manual page. Reviewed by: Chuck Silvers, kib (earlier version) tested by: Peter Holm Differential Revision: https://reviews.freebsd.org/D32697
* geom: Add HiFive boot partitionsEd Maste2022-01-261-1/+11
| | | | | | | | As documented in the HiFive Unmatched Software Reference Manual. Reviewed by: imp, mhorne Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34010
* gpart.8: minor tidyingEd Maste2022-01-261-4/+5
| | | | Reported by: igor(1)
* gpart(8): add minimal reference to glabel(8) to manual pageEugene Grosbein2022-01-101-0/+5
| | | | MFC after: 1 week
* gmultipath.8: Fix a typoMateusz Piotrowski2021-12-101-1/+1
| | | | | | It's Word Wide Port Name, not World Word Port Name. MFC after: 3 days
* geli(8): Do not report error on resize to the same size.Alexander Motin2021-08-181-4/+4
| | | | | | | | | | Just validate the old metadata and exit. Originally the check was added to not thash the only copy of metadata, but we can achieve the same just by skipping the writing/trashing. The metadata validation should protect user from wrongly specifying new size instead of old. MFC after: 1 month Sponsored by: iXsystems, Inc.