bectl: Add -E flag to create an empty boot environmentSigned-off-by: Pat Maddox <pat@patmaddox.com>Reviewed by: kevansMFC after: 1 weekCloses: https://github.com/freebsd/freebsd-src/pull/1975
bectl: log modifying functions to zpool historyModeled directly after the method used by the zfs/zpool commands: flagcommands with a "please log me" flag, and when there, reconstruct thecommand l
bectl: log modifying functions to zpool historyModeled directly after the method used by the zfs/zpool commands: flagcommands with a "please log me" flag, and when there, reconstruct thecommand line. On success, call the library function to add it to thelog.(Majority of the change by Rob; minor edits by kevans@)Signed-off-by: Rob Norris <rob.norris@klarasystems.com>Co-authored-by: Kyle Evans <kevans@FreeBSD.org>Sponsored by: Modirum MDPaySponsored by: Klara, Inc.
show more ...
Use ZFSTOP more broadlyReviewed by: brooksObtained from: CheriBSDDifferential Revision: https://reviews.freebsd.org/D53791
zfs: fix build after openzfs/zfs@e63d026b9Fix MakefilesUpdate zfs_config.h and zfs_gitrev.h
bectl.8: Describe better+ Concise document description for consistency and apropos results+ Improve introductory paragraph, mentioning boot loader support+ Explain -r in "Supported Subcommands an
bectl.8: Describe better+ Concise document description for consistency and apropos results+ Improve introductory paragraph, mentioning boot loader support+ Explain -r in "Supported Subcommands and Flags"+ Clarify the purpose of the check subcommand+ Add two basic examples, creating and mounting+ Fold some long lines, correct a stray capitalization.MFC after: 3 daysCo-authored-by: kevans
bectl: Print activate message in a single lineWhen -t parameter is used, bectl prints a complementary message "fornext boot" on a second line. Change it to print entire message on asingle line.
bectl: Print activate message in a single lineWhen -t parameter is used, bectl prints a complementary message "fornext boot" on a second line. Change it to print entire message on asingle line.Reviewed by: kevansMFC after: 1 weekSponsored by: Rubicon Communications, LLC ("Netgate")Differential Revision: https://reviews.freebsd.org/D49439
bectl: Use SPDX only licensebectl.8 had a truncated license without the required disclaimer.Correct it consistently by converting all bectl licenses to SPDX form.Approved by: kevansApproved by
bectl: Use SPDX only licensebectl.8 had a truncated license without the required disclaimer.Correct it consistently by converting all bectl licenses to SPDX form.Approved by: kevansApproved by: Kyle Kneitinger <kyle@kneit.in>Approved by: Wes Maag <wes@jwmaag.org>Approved by: mhorne (mentor, implicit)Differential Revision: https://reviews.freebsd.org/D49066
Update Makefile.depend filesAfter building packages we have a number of newand updated Makefile.depend filesReviewed by: stevek
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
Prepare some build fixes in advance of more _FORTIFY_SOURCEZFS' libspl needs to be made aware that we have strlcat(3) andstrlcpy(3) to avoid some more complicated declaration duplication, sogo ah
Prepare some build fixes in advance of more _FORTIFY_SOURCEZFS' libspl needs to be made aware that we have strlcat(3) andstrlcpy(3) to avoid some more complicated declaration duplication, sogo ahead and define these HAVE_ macros now.libprocstat has to define `_KERNEL` and include kernel headers in orderto get what it wants, but this results in sys/cdefs.h being included toolate and we pick up the build breaking version of the __RENAMEdefinition. Just explicitly include sys/cdefs.h earlier rather thandisabling _FORTIFY_SOURCE. The zfs/ subdir only builds an object thatholds some structures and sizes, so just disable _FORTIFY_SOURCE thereentirely rather than trying to move #define _KERNEL into the file..While we're here, make sure that we disable _FORTIFY_SOURCE in thebootloader because we don't have the symbol renaming support today to doit as cleanly as we'd like. ssp/ssp.h needs to be pulled into the libsaenvironment so that other bits can understand that ssp is disabled inthe consistent __SSP_FORTIFY_LEVEL way that we try to do.Reviewed by: allanjude (previous version), markjSponsored by: Klara, Inc.Sponsored by: StormshieldDifferential Revision: https://reviews.freebsd.org/D45676
bectl(8): authors: Kyle Evans: fine-tuneDiscussed with Kyle in Discord.Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/857
bectl(8): authors: be more explicitCross-reference (name) the manual page that was written by BryanDrewery.Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/857
bectl(8): HISTORY, AUTHORS: further attentionReviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/857
bectl(8): corrections, changesbeadm(1) no longer exists.Cross-reference beadm(8).Aim to improve the HISTORY and AUTHORS sections, including consistencywith the manual pages for beadm(8) and li
bectl(8): corrections, changesbeadm(1) no longer exists.Cross-reference beadm(8).Aim to improve the HISTORY and AUTHORS sections, including consistencywith the manual pages for beadm(8) and libbe(3).Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/857
bectl: Simplify command aliases.MFC after: 3 daysReviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D44406
bectl: Use geopt() and drop mention of -?.MFC after: 3 daysPR: 272260Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D44405
libbe: handle destroying/renaming temporary/bootonce boot environmentsWhen a temporary/bootonce boot environment is renamed, we need to alsoupdate the bootenv nvlist on-disk to reflect the new nam
libbe: handle destroying/renaming temporary/bootonce boot environmentsWhen a temporary/bootonce boot environment is renamed, we need to alsoupdate the bootenv nvlist on-disk to reflect the new name. Additionally,when a temporary/bootonce boot environment is destroyed, we also need toclear out the on-disk state.Reviewed by: kevansApproved by: kpMFC after: 1 weekSponsored by: Rubicon Communications, LLC ("Netgate")Differential Revision: https://reviews.freebsd.org/D43591
sbin: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remo
sbin: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank 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
sbin: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl
sbin: Remove ancient SCCS tags.Remove ancient SCCS tags from the tree, automated scripting, with twominor fixup to keep things compiling. All the common forms in the treewere removed with a perl script.Sponsored by: Netflix
bectl: fix some `mandoc -Tlint` complaintsThe EXAMPLES mis-comments caused an obnoxious amount of blank spaceabove SEE ALSO when rendered by mandoc to a terminal. The missingtermination of .Xo m
bectl: fix some `mandoc -Tlint` complaintsThe EXAMPLES mis-comments caused an obnoxious amount of blank spaceabove SEE ALSO when rendered by mandoc to a terminal. The missingtermination of .Xo meant the description of -h ran together with thesubcommand synopsis. The other changes were generally ignored tags dueto context that simply don't need to be there.Provoked by: grahamperrin
bectl: make mount subcommand less verboseThe mount subcommand currently produces output such as: # bectl mount <bootenv> Successfully mounted <bootenv> at <mountpoint>This commit changes
bectl: make mount subcommand less verboseThe mount subcommand currently produces output such as: # bectl mount <bootenv> Successfully mounted <bootenv> at <mountpoint>This commit changes it to only print the mountpoint: # bectl mount <bootenv> <mountpoint>This makes it easier to script the mount subcommand. If an error occurswhile mounting, an error message is printed to stderr and bectl willexit with a non-zero value.PR: 273180Reviewed by: kevans, asomersDifferential Revision: https://reviews.freebsd.org/D41562
Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
123456