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
show more ...
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/
libbe: recursively promote deep BE datasetsbeadm will recursively promote deep BE datasets. In order to match thebeadm behavior, we need to recursively iterate over child filesystemsand promote t
libbe: recursively promote deep BE datasetsbeadm will recursively promote deep BE datasets. In order to match thebeadm behavior, we need to recursively iterate over child filesystemsand promote them along the way.This patch further refines the work from D40903, completing the fix forpromotion.Reviewed by: kevans, rewSponsored by: Rubicon Communications, LLC ("Netgate")Differential Revision: https://reviews.freebsd.org/D40972
libbe: promote activated BEs all the wayThis matches the beadm behavior; generally, we need to keep promotinguntil the BE is no longer a clone from a snapshot. This fixes scenarioswhere the data
libbe: promote activated BEs all the wayThis matches the beadm behavior; generally, we need to keep promotinguntil the BE is no longer a clone from a snapshot. This fixes scenarioswhere the dataset associated with a BE's origin is itself a clone,activating the BE previously would promote it to a clone of the origin'sorigin.We could keep using be_get_dataset_props here, except for twoannoyances:1.) I couldn't find a clean way to just clear an nvlist rather than having to re-alloc it, and I didn't want to just remove the one prop we're inspecting out of it.2.) That's a lot of overhead when all we want to do is fetch the origin anyways.Note that this is not a complete fix, but it does fix the majority ofcases; deep BE subordinates are still notably broken, pending a patchfrom Christian.Reported by: R. Christian McDonald <rcm@rcm.sh>Reviewed by: rewDifferential Revision: https://reviews.freebsd.org/D40903
bectl(8): clarifications, expansionReviewed-by: impPull-request: https://github.com/freebsd/freebsd-src/pull/728
bectl.8: update /homeThe default location for home directories is moving from /usr/hometo /home, including the default zfs datasets. Update accordingly.Add zroot/usr/src as replacement example o
bectl.8: update /homeThe default location for home directories is moving from /usr/hometo /home, including the default zfs datasets. Update accordingly.Add zroot/usr/src as replacement example of nested datasets.While here, mark zroot/var as "canmount off" as per current setup.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D40206
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
bectl: document the -r flag to bectlIndependent of all of the commands, bectl itself takes an `-r` flag thatspecifies the BE root to use. This was originally added to facilitatetesting, but it w
bectl: document the -r flag to bectlIndependent of all of the commands, bectl itself takes an `-r` flag thatspecifies the BE root to use. This was originally added to facilitatetesting, but it was later discovered to be incredibly useful in otherscenarios; e.g., trying to recover some boot environments in rescuemedia.The "BE root" described here is the parent dataset that holds bootenvironments, but I've no idea if that's an accepted definition for thatdataset.Reviewed by: gallatin, imp, Pau AmmaMFC after: 1 weekDifferential Review: https://reviews.freebsd.org/D39710
zfs: merge openzfs/zfs@431083f75Notable upstream pull request merges: #12194 Fix short-lived txg caused by autotrim #13368 ZFS_IOC_COUNT_FILLED does unnecessary txg_wait_synced() #13392 Imple
zfs: merge openzfs/zfs@431083f75Notable upstream pull request merges: #12194 Fix short-lived txg caused by autotrim #13368 ZFS_IOC_COUNT_FILLED does unnecessary txg_wait_synced() #13392 Implementation of block cloning for ZFS #13741 SHA2 reworking and API for iterating over multiple implementations #14282 Sync thread should avoid holding the spa config write lock when possible #14283 txg_sync should handle write errors in ZIL #14359 More adaptive ARC eviction #14469 Fix NULL pointer dereference in zio_ready() #14479 zfs redact fails when dnodesize=auto #14496 improve error message of zfs redact #14500 Skip memory allocation when compressing holes #14501 FreeBSD: don't verify recycled vnode for zfs control directory #14502 partially revert PR 14304 (eee9362a7) #14509 Fix per-jail zfs.mount_snapshot setting #14514 Fix data race between zil_commit() and zil_suspend() #14516 System-wide speculative prefetch limit #14517 Use rw_tryupgrade() in dmu_bonus_hold_by_dnode() #14519 Do not hold spa_config in ZIL while blocked on IO #14523 Move dmu_buf_rele() after dsl_dataset_sync_done() #14524 Ignore too large stack in case of dsl_deadlist_merge #14526 Use .section .rodata instead of .rodata on FreeBSD #14528 ICP: AES-GCM: Refactor gcm_clear_ctx() #14529 ICP: AES-GCM: Unify gcm_init_ctx() and gmac_init_ctx() #14532 Handle unexpected errors in zil_lwb_commit() without ASSERT() #14544 icp: Prevent compilers from optimizing away memset() in gcm_clear_ctx() #14546 Revert zfeature_active() to static #14556 Remove bad kmem_free() oversight from previous zfsdev_state_list patch #14563 Optimize the is_l2cacheable functions #14565 FreeBSD: zfs_znode_alloc: lock the vnode earlier #14566 FreeBSD: fix false assert in cache_vop_rmdir when replaying ZIL #14567 spl: Add cmn_err_once() to log a message only on the first call #14568 Fix incremental receive silently failing for recursive sends #14569 Restore ASMABI and other Unify work #14576 Fix detection of IBM Power8 machines (ISA 2.07) #14577 Better handling for future crypto parameters #14600 zcommon: Refactor FPU state handling in fletcher4 #14603 Fix prefetching of indirect blocks while destroying #14633 Fixes in persistent error log #14639 FreeBSD: Remove extra arc_reduce_target_size() call #14641 Additional limits on hole reporting #14649 Drop lying to the compiler in the fletcher4 code #14652 panic loop when removing slog device #14653 Update vdev state for spare vdev #14655 Fix cloning into already dirty dbufs #14678 Revert "Do not hold spa_config in ZIL while blocked on IO"Obtained from: OpenZFSOpenZFS commit: 431083f75bdd3efaee992bdd672625ec7240d252
123456