libbe: avoid copying encryption-related propslibzfs insists that these be cloned from the origin, so avoid making adeep copy of them ourselves to unbreak creating a new BE from a BE withencrypted
libbe: avoid copying encryption-related propslibzfs insists that these be cloned from the origin, so avoid making adeep copy of them ourselves to unbreak creating a new BE from a BE withencrypted components -- in today's environment, without a loader thatdoes encryption, this means a deep BE setup where something underneaththe BE (e.g., home directories) are encrypted.Reported and tested by: arrowdReviewed by: allanjudeDifferential Revision: https://reviews.freebsd.org/D48464
show more ...
manuals: Remove trailing spacesThis does not change the rendered ascii at all.Signed-off-by: Graham Percival <gperciva@tarsnap.com>Reviewed by: mhorne, Alexander Ziaee <concussious.bugzilla@runb
manuals: Remove trailing spacesThis does not change the rendered ascii at all.Signed-off-by: Graham Percival <gperciva@tarsnap.com>Reviewed by: mhorne, Alexander Ziaee <concussious.bugzilla@runbox.com>MFC after: 3 daysSponsored by: Tarsnap Backup Inc.Pull Request: https://github.com/freebsd/freebsd-src/pull/1473
Update Makefile.depend filesAfter building packages we have a number of newand updated Makefile.depend filesReviewed by: stevek
zfs: merge openzfs/zfs@b10992582Notable upstream pull request merges: #15892 -multiple Fast Dedup: Introduce the FDT on-disk format and feature flag #15893 -multiple Fast Dedup: “flat” DDT entry
zfs: merge openzfs/zfs@b10992582Notable upstream pull request merges: #15892 -multiple Fast Dedup: Introduce the FDT on-disk format and feature flag #15893 -multiple Fast Dedup: “flat” DDT entry format #15895 -multiple Fast Dedup: FDT-log feature #16239 6be8bf555 zpool: Provide GUID to zpool-reguid(8) with -g #16277 -multiple Fast Dedup: prune unique entries #16316 5807de90a Fix null ptr deref when renaming a zvol with snaps and snapdev=visible #16343 77a797a38 Enable L2 cache of all (MRU+MFU) metadata but MFU data only #16446 83f359245 FreeBSD: fix build without kernel option MAC #16449 963e6c9f3 Fix incorrect error report on vdev attach/replace #16505 b10992582 spa_prop_get: require caller to supply output nvlistObtained from: OpenZFSOpenZFS commit: b109925820fb79db3e37670c159977f03edd950f
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
libbe(3): history: fix'bectl(8) and libbe' (not 'libbe and libbe(3)').Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/857
libbe(3): consistency, and authorsConsistency with the manual page for bectl(8), including addition of anAUTHORS section.Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pul
libbe(3): consistency, and authorsConsistency with the manual page for bectl(8), including addition of anAUTHORS section.Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/857
libbe: Fix some markup issues.MFC after: 3 daysReviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D44407
libbe(3): Fix typo and grammarEvent: Advanced UNIX Programming Course (Fall’23) at NTHU.Pull Request: https://github.com/freebsd/freebsd-src/pull/1039
lib/libbe/be.c: remove an extra semicolonSigned-off-by: rilysh <nightquick@proton.me>Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/959
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
lib: 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.Remov
lib: 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
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
libbe: bail out early if the zfs kmod isn't loadedAs noted in the comment, we already know the rest of libbe_init() willfail because there's no pool imported. Avoid the side effect bychecking be
libbe: bail out early if the zfs kmod isn't loadedAs noted in the comment, we already know the rest of libbe_init() willfail because there's no pool imported. Avoid the side effect bychecking beforehand and bailing out early.With this, freebsd-update(8) should no longer trigger a load of the zfskmod just because it runs `bectl check`.Reviewed by: jwmaag_gmail.com, rewDifferential Revision: https://reviews.freebsd.org/D36188
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
zfs: merge openzfs/zfs@d96e29576Notable upstream pull request merges: #11680 Add support for zpool user properties #14145 Storage device expansion "silently" fails on degraded vdev #14405 Cr
zfs: merge openzfs/zfs@d96e29576Notable upstream pull request merges: #11680 Add support for zpool user properties #14145 Storage device expansion "silently" fails on degraded vdev #14405 Create zap for root vdev #14659 Allow MMP to bypass waiting for other threads #14674 Miscellaneous FreBSD compilation bugfixes #14692 Fix some signedness issues in arc_evict() #14702 Fix typo in check_clones() #14715 module: small fixes for FreeBSD/aarch64 #14716 Trim needless zeroes from checksum events #14719 vdev: expose zfs_vdev_max_ms_shift as a module parameter #14722 Fix "Detach spare vdev in case if resilvering does not happen" #14723 freebsd clone range fixes #14728 Fix BLAKE3 aarch64 assembly for FreeBSD and macOS #14735 Fix in check_filesystem() #14739 Fix data corruption when cloning embedded blocks #14758 Fix VERIFY(!zil_replaying(zilog, tx)) panic #14761 Revert "ZFS_IOC_COUNT_FILLED does unnecessary txg_wait_synced()" #14774 FreeBSD .zfs fixups #14776 FreeBSD: make zfs_vfs_held() definition consistent with declaration #14779 powerpc64: Support ELFv2 asm on Big Endian #14788 FreeBSD: add missing vop_fplookup assignments #14789 PAM: support the authentication facility #14790 Revert "Fix data race between zil_commit() and zil_suspend()" #14795 Fix positive ABD size assertion in abd_verify() #14798 Mark TX_COMMIT transaction with TXG_NOTHROTTLE #14804 Correct ABD size for split block ZIOs #14806 Use correct block pointer in block cloning case. #14808 blake3: fix up bogus checksums in face of cpu migrationObtained from: OpenZFSOpenZFS commit: d96e29576c89e6e547cb82b477651d2b85ea0fed
Update/fix Makefile.depend for userland
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
libbe: Avoid double printing cloning errors.be_clone calls be_clone_cb and both call set_error on the returnerror path. set_error prints the error resulting in a double print.be_clone_cb should
libbe: Avoid double printing cloning errors.be_clone calls be_clone_cb and both call set_error on the returnerror path. set_error prints the error resulting in a double print.be_clone_cb should just return the error code and allow be_cloneto print it.PR: 265248Reported by: Graham PerrinReviewed by: imp, kevansPull Request: https://github.com/freebsd/freebsd-src/pull/685
123456