aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/module
Commit message (Collapse)AuthorAgeFilesLines
* zfs: merge openzfs/zfs@8f2f6cd2aMartin Matuska12 days7-368/+575
| | | | | | | | | | | Notable upstream pull request merges: #15887 -multiple Fast Dedup: Cleanup and documentation ahead of integrating Fast Dedup #15907 5600dff0e Fixed parameter passing error when calling zfs_acl_chmod #15908 8f2f6cd2a ddt: reduce DDT_NAMELEN Obtained from: OpenZFS OpenZFS commit: 8f2f6cd2ac688916adb2caf979daf95365ccb48f
* zfs: merge openzfs/zfs@e0bd8118dMartin Matuska2024-02-156-57/+97
| | | | | | | | | | | | Notable upstream pull request merges: #15469 cbe882298 Add slow disk diagnosis to ZED #15857 d0d273320 Update zfs-snapshot.8 #15864 a5a725440 zfs list: add '-t fs' and '-t vol' options #15874 6cc93ccde BRT: Fix slop space calculation with block cloning #15882 a0635ae73 zdb: Fix false leak report for BRT objects Obtained from: OpenZFS OpenZFS commit: e0bd8118d04b55b7adf3d9ba256ad4bb53e66512
* zfs: merge openzfs/zfs@229b9f4edMartin Matuska2024-02-086-52/+127
| | | | | | | | | | Notable upstream pull request merges: #15769 082338875 Add 'zpool status -e' flag to see unhealthy vdevs #15804 a0d3fe72b libzdb: Initial breakout of libzdb #15847 229b9f4ed LUA: Backport CVE-2020-24370's patch Obtained from: OpenZFS OpenZFS commit: 229b9f4ed05e6d14fb4d73fa04a71e99b01bb534
* zfs: merge openzfs/zfs@2e6b3c4d9Martin Matuska2024-01-309-85/+130
| | | | | | | | | | | | | | | | Notable upstream pull request merges: #15793 401c3563d libzfs: use zfs_strerror() in place of strerror() #15793 692f0daba libzfs: make userquota_propname_decode threadsafe #15798 0cbf13529 libnvpair.c: replace strstr() with strchr() for a single character #15812 78e8c1f84 Remove list_size struct member from list implementation #15816 aeb33776f Update vdev devid and physpath if changed between imports #15818 8161b7327 Don't assert mg_initialized due to device addition race #15823 c3fd7a521 Update man pages to time(1) from time(2) #15825 884a48d99 zpool wait: print timestamp before the header Obtained from: OpenZFS OpenZFS commit: 2e6b3c4d9453360a351af6148386360a3a7209b3
* zfs: merge openzfs/zfs@a4bf6baaeMartin Matuska2024-01-241-12/+51
| | | | | | | | | Notable upstream pull request merges: #15630 a4bf6baae FreeBSD: Fix file descriptor leak on pool import #15780 d9cb42da9 FreeBSD: Fix bootstrapping tools under Linux/musl Obtained from: OpenZFS OpenZFS commit: a4bf6baaeb70a01a4c13fd6139ebdc97bad172e9
* zfs: merge openzfs/zfs@a0b2a93c4Martin Matuska2024-01-177-38/+84
| | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15660 66670ba9f fix(mount): do not truncate shares not zfs mount #15719 3bddc4dae spa: Fix FreeBSD sysctl handlers (already merged) #15719 5a703d136 spa: Let spa_taskq_param_get()'s addition of a newline be optional #15721 6138af86b Stop wasting time on malloc in snprintf_zstd_header #15723 1f5bf9600 Make zdb -R a little more sane. #15726 20dd16d9f Make zdb -R scale less poorly #15737 d9885b377 fix: Uber block label not always found for aux vdevs #15737 2df2a58dc Extend aux label to add path information #15737 b64be1624 Add path handling for aux vdevs in `label_path` #15747 a1771d243 Fix "out of memory" error #15752 1a11ad9d2 Fix a potential use-after-free in zfs_setsecattr() #15772 f45dd90f3 Fix cloning into mmaped and cached file #15781 1494e8fba Autotrim High Load Average Fix Obtained from: OpenZFS OpenZFS commit: a0b2a93c41b0b0d7723d1b20eb1eca7a1a63e45b
* zfs: merge openzfs/zfs@a382e2119Martin Matuska2024-01-102-23/+39
| | | | | | | | | | | Notable upstream pull request merges: #15693 a382e2119 Add Gotify notification support to ZED #15732 e78aca3b3 Fix livelist assertions for dedup and cloning #15733 7ecaa0758 make zdb_decompress_block check decompression reliably #15735 255741fc9 Improve block sizes checks during cloning Obtained from: OpenZFS OpenZFS commit: a382e21194c1690951d2eee8ebd98bc096f01c83
* zfs: Fix SPA sysctl handlersMark Johnston2024-01-011-24/+6
| | | | | | | | | | | | | | | | | sbuf_cpy() resets the sbuf state, which is wrong for sbufs allocated by sbuf_new_for_sysctl(). In particular, this code triggers an assertion failure in sbuf_clear(). Simplify by just using sysctl_handle_string() for both reading and setting the tunable. Apply to FreeBSD directly since this bug causes "sysctl -a" to crash the kernel. PR: 276039 Reported by: pho Reviewed by: mav Pull Request: https://github.com/openzfs/zfs/pull/15719
* zfs: merge openzfs/zfs@233d34e47Martin Matuska2023-12-2713-123/+685
| | | | | | | | | | | Notable upstream pull request merges: #15635 eff77a802 ZIL: Improve next log block size prediction #15675 6930ecbb7 spa: make read/write queues configurable #15677 5a4915660 Don't panic on unencrypted block in encrypted dataset #15716 07e95b467 Fix the FreeBSD userspace build Obtained from: OpenZFS OpenZFS commit: 233d34e47ef88ee9e9a1e1ad02384f2063cd039b
* zfs: merge openzfs/zfs@dbda45160Martin Matuska2023-12-195-25/+37
| | | | | | | | Notable upstream pull request merges: #15665 9b1677fb5 dmu: Allow buffer fills to fail Obtained from: OpenZFS OpenZFS commit: dbda45160ffa43e5ecf0498a609230f1afee7b3f
* zfs: merge openzfs/zfs@86e115e21Martin Matuska2023-12-154-6/+33
| | | | | | | | | | | Notable upstream pull request merges: #15643 a9b937e06 For db_marker inherit the db pointer for AVL comparision #15644 e53e60c0b DMU: Fix lock leak on dbuf_hold() error #15653 86063d903 dbuf: Handle arcbuf assignment after block cloning #15656 86e115e21 dbuf: Set dr_data when unoverriding after clone Obtained from: OpenZFS OpenZFS commit: 86e115e21e5bdeee73c88c5a1a73a29d9637380a
* Notable upstream pull request merges:Martin Matuska2023-12-0816-178/+333
| | | | | | | | | | | | | | | | | | | | | | | | #15539 687e4d7f9 Extend import_progress kstat with a notes field #15544 c7b611926 Allow block cloning across encrypted datasets #15553 adcea23cb ZIO: Add overflow checks for linear buffers #15593 5f2700eee zpool: flush output before sleeping #15609 3e4bef52b Only provide execvpe(3) when needed #15610 735ba3a7b Use uint64_t instead of u_int64_t #15612 bcd83ccd2 ZIL: Remove TX_CLONE_RANGE replay for ZVOLs #15617 55b764e06 ZIL: Do not clone blocks from the future #15623 727497ccd module/icp/asm-arm/sha2: enable non-SIMD asm kernels on armv5/6 #15625 9743d0963 BRT: Limit brt_vdev_dump() to only one vdev #15629 f9765b182 zdb: Dump encrypted write and clone ZIL records #15634 2aa3a482a ZIL: Remove 128K into 2x68K LWB split optimization #15639 11656234b FreeBSD: Ensure that zfs_getattr() initializes the va_rdev field #15647 4836d293c zfs_refcount_remove: explictly ignore returns #15649 f0cb6482e setproctitle: fix ununitialised variable #15650 450f2d0b0 import: ignore return on hostid lookups Obtained from: OpenZFS OpenZFS commit: 450f2d0b08e73cfb057d0e301a813418b70d64b9
* zfs: merge openzfs/zfs@a03ebd9beMartin Matuska2023-11-2911-54/+140
| | | | | | | | | | | | Notable upstream pull request merges: #15517 2a27fd411 ZIL: Assert record sizes in different places #15557 b94ce4e17 module/icp/asm-arm/sha2: fix compiling on armv5/6 #15557 4340f69be module/icp/asm-arm/sha2: auto detect __ARM_ARCH #15603 a03ebd9be ZIL: Call brt_pending_add() replaying TX_CLONE_RANGE #15606 1c38cdfe9 zdb: fix printf() length for uint64_t devid Obtained from: OpenZFS OpenZFS commit: a03ebd9beec6243682557fa692c12b1061fc58bd
* zfs: merge openzfs/zfs@688514e47Martin Matuska2023-11-2814-228/+109
| | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15532 c1a47de86 zdb: Fix zdb '-O|-r' options with -e/exported zpool #15535 cf3316633 ZVOL: Minor code cleanup #15541 803a9c12c brt: lift internal definitions into _impl header #15541 213d68296 zdb: show BRT statistics and dump its contents #15543 a49087510 ZIL: Refactor TX_WRITE encryption similar to TX_CLONE_RANGE #15543 27d8c23c5 ZIL: Do not encrypt block pointers in lr_clone_range_t #15549 67894a597 unnecessary alloc/free in dsl_scan_visitbp() #15551 126efb588 FreeBSD: Fix the build on FreeBSD 12 #15563 acb33ee1c FreeBSD: Fix ZFS so that snapshots under .zfs/snapshot are NFS visible #15564 7bbd42ef4 Don't allow attach to a raidz child vdev #15566 688514e47 dmu_buf_will_clone: fix race in transition back to NOFILL #15571 30d581121 dnode_is_dirty: check dnode and its data for dirtiness Obtained from: OpenZFS OpenZFS commit: 688514e4704bdee4551d25960febd322ac26f297
* vn_copy_file_range(): provide ENOSYS fallback to vn_generic_copy_file_range()Konstantin Belousov2023-11-281-3/+1
| | | | | | | Reviewed by: markj, Olivier Certner <olce.freebsd@certner.fr> Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42603
* zfs: merge openzfs/zfs@a94860a6dMartin Matuska2023-11-2130-109/+101
| | | | | | | | | | | Notable upstream pull request merges: #15511 92dc4ad83 Consider `dnode_t` allocations in dbuf cache size accounting #15514 22c8c33a5 Use abd_zero_off() where applicable #15515 5a3bffab1 ZIO: Optimize zio_flush() #15527 cd67bc0ae freebsd: remove __FBSDID macro use Obtained from: OpenZFS OpenZFS commit: a94860a6dee1c07bb96ee36dafcba40b804560cc
* zfs: merge openzfs/zfs@03e9caaecMartin Matuska2023-11-176-39/+21
| | | | | | | | | | Notable upstream pull request merges: #15516 da51bd17e Fix snap_obj_array memory leak in check_filesystem() #15519 35da34516 L2ARC: Restrict write size to 1/4 of the device #15529 03e9caaec Add a tunable to disable BRT support Obtained from: OpenZFS OpenZFS commit: 03e9caaec006134b3db9d02ac40fe9369ee78b03
* zfs: merge openzfs/zfs@887a3c533Martin Matuska2023-11-0918-232/+2934
| | | | | | | | | | Notable upstream pull request merges: #15022 5caeef02f RAID-Z expansion feature #15457 887a3c533 Increase L2ARC write rate and headroom #15504 1c1be60fa Unbreak FreeBSD world build after 3bd4df384 Obtained from: OpenZFS OpenZFS commit: 887a3c533b94a4b70075e310f15c45b9dee19410
* zfs: merge openzfs/zfs@9198de8f1Martin Matuska2023-11-0819-151/+505
| | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15197 3bd4df384 Improve ZFS objset sync parallelism #15455 020f6fd09 FreeBSD: Implement taskq_init_ent() #15476 3d86999c7 sa_lookup() ignores buffer size #15478 2a154b848 Fix accounting error for pending sync IO ops in zpool iostat #15484 dc45a00ea Add kern.features.zfs #15486 e36ff84c3 Update the kstat dataset_name when renaming a zvol #15491 f4cd1bac7 Make abd_raidz_gen_iterate() pass an initialized pointer to the callback #15495 58398cbd0 FreeBSD: Optimize large kstat outputs Obtained from: OpenZFS OpenZFS commit: 9198de8f1079a8bbb837de3e3f8e236777b1375d
* zfs: merge openzfs/zfs@41e55b476Martin Matuska2023-11-0117-422/+391
| | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15366 c3773de1 ZIL: Cleanup sync and commit handling #15409 dbe839a9 zvol: Cleanup set property #15409 60387fac zvol: Implement zvol threading as a Property #15409 9ccdb8be zvol: fix delayed update to block device ro entry #15448 05a7348a RAIDZ: Use cache blocking during parity math #15452 514d661c Tune zio buffer caches and their alignments #15456 799e09f7 Unify arc_prune_async() code #15465 763ca47f Fix block cloning between unencrypted and encrypted datasets To make the module version better comparable, the module version number now includes the commit count since last tag. Obtained from: OpenZFS OpenZFS commit: 41e55b476bcfc90f1ad81c02c5375367fdace9e9
* zfs: merge openzfs/zfs@043c6ee3bMartin Matuska2023-10-3014-208/+216
| | | | | | | | | | | | | | | | Notable upstream pull request merges: #15360 97a0b5be Add mutex_enter_interruptible() for interruptible sleeping IOCTLs #15381 252f46be ZIL: Detect single-threaded workloads #15398 3afdc97d ZIO: Remove READY pipeline stage from root ZIOs #15428 e007908a ABD: Be more assertive in iterators #15436 07345ac2 Add prefetch property #15438 e9725abd Revert "Do not persist user/group/project quota zap objects when unneeded" #15451 043c6ee3 Read prefetched buffers from L2ARC Obtained from: OpenZFS OpenZFS commit: 043c6ee3b6bfb55f8d36e1f048ff13128c279fb8
* zfs: merge openzfs/zfs@797f55ef1Martin Matuska2023-10-226-66/+86
| | | | | | | | | | | | | | | | Notable upstream pull request merges: #14378 c0e58995e Large sync writes perform worse with slog #14721 797f55ef1 Do not persist user/group/project quota zap objects when unneeded #15356 380c25f64 FreeBSD: Improve taskq wrapper #15390 4fbc52495 Remove lock from dsl_pool_need_dirty_delay() #15397 57b409856 Trust ARC_BUF_SHARED() more #15402 b29e98fa8 Properly pad struct tx_cpu to cache line #15405 ea30b5a9e Set spa_ccw_fail_time=0 when expanding a vdev #15416 b9384b949 FreeBSD: taskq: Remove unused declaration Obtained from: OpenZFS OpenZFS commit: 797f55ef12d752d2a7fb04fae5d24e019adf2a1d
* zfs: merge openzfs/zfs@8a7407012Martin Matuska2023-10-134-26/+30
| | | | | | | | | | | Notable upstream pull request merges: #15368 008baa091 FreeBSD: Reduce divergence from in-tree sources #15371 1b310dfb1 DMU: Do not pre-read holes during write #15395 8a7407012 Zpool can start allocating from metaslab before TRIMs have completed Obtained from: OpenZFS OpenZFS commit: 8a740701283495e59944839bb2607f80907d950e
* zfs: enable block cloning by defaultMartin Matuska2023-10-101-1/+1
| | | | | | | | Discussed with: markj Reviewed by: mav Tested by: mm (FreeBSD test suite + OpenZFS test suite) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D41991
* zfs: merge openzfs/zfs@66b81b349Martin Matuska2023-10-085-307/+123
| | | | | | | | | | | | | | | Notable upstream pull request merges: #15290 54b1b1d89 import: require force when cachefile hostid doesn't match on-disk #15319 342357cd9 Reduce number of metaslab preload taskq threads #15340 2a6c62109 ARC: Remove b_cv from struct l1arc_buf_hdr #15347 75a2eb7fa ARC: Drop different size headers for crypto #15350 96b9cf42e ARC: Remove b_bufcnt/b_ebufcnt from ARC headers #15353 66b81b349 ZIL: Reduce maximum size of WR_COPIED to 7.5K #15362 5b8688e62 zfsconcepts: add description of block cloning Obtained from: OpenZFS OpenZFS commit: 66b81b349749bc1ba11fa277bee860be03315429
* zfs: merge openzfs/zfs@f795e90a1Martin Matuska2023-10-043-0/+15
| | | | | | | | | | | Notable upstream pull request merges: #15322 4e16964e1 Add '-u' - nomount flag for zfs set #15331 fe4d055b3 Report ashift of L2ARC devices in zdb #15333 249d759ca Fix invalid pointer access in trace_dbuf.h #15339 f795e90a1 Add BTI landing pads to the AArch64 SHA2 assembly Obtained from: OpenZFS OpenZFS commit: f795e90a11c683d64bacc260fb7feab705b220b1
* zfs: merge openzfs/zfs@e13538856Martin Matuska2023-09-294-16/+32
| | | | | | | | | | | Notable upstream pull request merges: #15308 5551dcd76 Don't allocate from new metaslabs #15312 ba769ea35 Fix ENOSPC for extended quota #15321 e13538856 Restrict short block cloning requests #15324 f9c39dc86 Tweak rebuild in-flight hard limit Obtained from: OpenZFS OpenZFS commit: e13538856479ff79ca6642e53dddf8a593deb2c9
* zfs: merge openzfs/zfs@2e2a46e0aMartin Matuska2023-09-247-17/+54
| | | | | | | | | | Notable upstream pull request merges: #15243 b53077a9e Add zfs_prepare_disk script for disk firmware install #15298 2e2a46e0a Invoke zdb by guid to avoid import errors #15301 e5d70f467 ZIL: Avoid dbuf_read() in ztest_get_data() Obtained from: OpenZFS OpenZFS commit: 2e2a46e0a597b3ee606ea7dc5bc527459077322f
* zfs: merge openzfs/zfs@4647353c8Martin Matuska2023-09-219-16/+31
| | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15240 bbac1d297 Update the behavior of mountpoint property #15240 c63aabaf1 Improve the handling of sharesmb,sharenfs properties #15248 741c215ba Fix l2arc_apply_transforms ztest crash #15274 ee720ad7b Retire z_nr_znodes #15278 90149552b ZIL: Fix potential race on flush deferring #15279 e923bcd16 Update the MOS directory on spa_upgrade_errlog() #15281 529bec7d7 zed: Allow autoreplace and fault LEDs for removed vdevs #15288 7228ba111 cmd: add 'help' subcommand to zpool and zfs #15297 4647353c8 status: report pool suspension state under failmode=continue Obtained from: OpenZFS OpenZFS commit: 4647353c8b2b5ca506da45bb9b01e1f3ef521847
* zfs: retire z_nr_znodesMateusz Guzik2023-09-162-7/+3
| | | | | | It is not needed and is going away soon(tm), facilitating other changes. See https://github.com/openzfs/zfs/pull/15274
* zfs: merge openzfs/zfs@0ee9b0239Martin Matuska2023-09-113-5/+39
| | | | | | | | Notable upstream pull request merges: #15251 Add more constraints for block cloning Obtained from: OpenZFS OpenZFS commit: 0ee9b02390d57c10a4dee0f3d19fcb115b424ca5
* zfs: merge openzfs/zfs@95f71c019Martin Matuska2023-09-0213-101/+241
| | | | | | | | | | | | | | Notable upstream pull request merges: #15018 Increase limit of redaction list by using spill block #15161 Make zoned/jailed zfsprops(7) make more sense #15216 Relax error reporting in zpool import and zpool split #15218 Selectable block allocators #15227 ZIL: Tune some assertions #15228 ZIL: Revert zl_lock scope reduction #15233 ZIL: Change ZIOs issue order Obtained from: OpenZFS OpenZFS commit: 95f71c019d7c3e3b728a9b05e2117ce6b09f1b87
* zfs: merge openzfs/zfs@804414aadMartin Matuska2023-08-2634-733/+1165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15024 Add missed DMU_PROJECTUSED_OBJECT prefetch #15029 Do not request data L1 buffers on scan prefetch #15036 FreeBSD: catch up to __FreeBSD_version 1400093 #15039 Fix raw receive with different indirect block size #15047 FreeBSD: Fix build on stable/13 after 1302506 #15049 Fix the ZFS checksum error histograms with larger record sizes #15052 Reduce bloat in ereport.fs.zfs.checksum events #15056 Avoid extra snprintf() in dsl_deadlist_merge() #15061 Ignore pool ashift property during vdev attachment #15063 Don't panic if setting vdev properties is unsupported for this vdev type #15067 spa_min_alloc should be GCD, not min #15071 Add explicit prefetches to bpobj_iterate() #15072 Adjust prefetch parameters #15076 Refactor dmu_prefetch() #15079 set autotrim default to 'off' everywhere #15080 ZIL: Fix config lock deadlock #15088 metaslab: tuneable to better control force ganging #15096 Avoid waiting in dmu_sync_late_arrival() #15097 BRT should return EOPNOTSUPP #15103 Remove zl_issuer_lock from zil_suspend() #15107 Remove fastwrite mechanism #15113 libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1 #15122 ZIL: Second attempt to reduce scope of zl_issuer_lock #15129 zpool_vdev_remove() should handle EALREADY error return #15132 ZIL: Replay blocks without next block pointer #15148 zfs_clone_range should return descriptive error codes #15153 ZIL: Avoid dbuf_read() before dmu_sync() #15172 copy_file_range: fix fallback when source create on same txg #15180 Update outdated assertion from zio_write_compress Obtained from: OpenZFS OpenZFS commit: 804414aad224b432590afe3f9ec114ffb49e0f13
* zfs: cherry-pick fix from openzfsMartin Matuska2023-08-101-4/+0
| | | | | | | | | | Vendor PR: #15103 Remove zl_issuer_lock from zil_suspend() Obtained from: OpenZFS OpenZFS commit: 2848de11e516a2ef2e6baa574a60d77a6fb47023 Note: full vendor imports will continue when stable/14 has been branched
* zfs: cherry-pick fix from openzfsMartin Matuska2023-08-101-7/+27
| | | | | | | | | | Vendor PR: #15080 ZIL: Fix config lock deadlock Obtained from: OpenZFS OpenZFS commit: 2cb992a99ccadb78d97049b40bd442eb4fdc549d Note: full vendor imports will continue when stable/14 has been branched
* zfs: set autotrim default to 'off'Yuri Pankov2023-07-181-1/+1
| | | | | | | | | | | As it turns out having autotrim default to 'on' on FreeBSD never really worked due to mess with defines where userland and kernel module were getting different default values (userland was defaulting to 'off', module was thinking it's 'on'). PR: 264234 Reviewed by: mav (zfs) Differential Revision: https://reviews.freebsd.org/D41056
* zfs: merge openzfs/zfs@009d3288dMartin Matuska2023-07-018-33/+122
| | | | | | | | | | | | | | | Notable upstream pull request merges: #14654 Pack our DDT ZAPs a bit denser #14979 Again fix race between zil_commit() and zil_suspend() #14985 Some ZIO micro-optimizations #15000 Fix remount when setting multiple properties #15004 ddt_addref: remove unnecessary phys fill when refcount is 0 #15007 Do not report bytes skipped by scan as issued #15023 Enable tuning of ZVOL open timeout value Obtained from: OpenZFS OpenZFS commit: 009d3288dea524c7ad373b04b65bee8bb6f0bfea OpenZFS tag: zfs-2.2.0-rc1
* zfs: merge openzfs/zfs@a9d6b0690Martin Matuska2023-06-287-214/+264
| | | | | | | | | | Notable upstream pull request merges: #14925 Another set of vdev queue optimizations #14964 Use big transactions for small recordsize writes #14999 ZIL: Fix another use-after-free Obtained from: OpenZFS OpenZFS commit: a9d6b0690b1863f39a7efce08b1227f2e9e26abb
* zfs: merge openzfs/zfs@8e8acabdcMartin Matuska2023-06-251-2/+6
| | | | | | | | Notable upstream pull request merges: #14987 Fix memory leak in zil_parse() Obtained from: OpenZFS OpenZFS commit: 8e8acabdcaeb831c777f71361722f4235b698a8d
* zfs: merge openzfs/zfs@10e36e176Martin Matuska2023-06-167-221/+123
| | | | | | | | | | | Notable upstream pull request merges: #14948 Remove ARC/ZIO physdone callbacks #14963 Store the L2ARC device ashift in the vdev label #14970 Switch refcount tracking from lists to AVL-trees #14981 Shorten arcstat_quiescence sleep time Obtained from: OpenZFS OpenZFS commit: 10e36e17612ba9c634b140ae76847bb62b5be68f
* zfs: merge openzfs/zfs@feff9dfedMartin Matuska2023-06-1040-940/+756
| | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #14833 Update compatibility.d files #14841 ZIL: Reduce scope of per-dataset zl_issuer_lock #14863 zil: Add some more statistics #14866 btree: Implement faster binary search algorithm #14894 Fix inconsistent definition of zfs_scrub_error_blocks_per_txg #14892 Fix concurrent resilvers initiated at same time #14903 Fix NULL pointer dereference when doing concurrent 'send' operations #14910 ZIL: Allow to replay blocks of any size #14939 Fix the L2ARC write size calculating logic #14934 Introduce zfs_refcount_(add|remove)_few() #14946 Improve l2arc reporting in arc_summary #14953 Finally drop long disabled vdev cache #14954 Fix the L2ARC write size calculating logic (2) #14955 Use list_remove_head() where possible #14959 ZIL: Fix race introduced by f63811f0721 Obtained from: OpenZFS OpenZFS commit: feff9dfed3df1bbae5dd74959a6ad87d11f27ffb
* zfs: Fix build on 32-bit platforms after most recent import.John Baldwin2023-05-251-2/+2
| | | | | | | | | | unsigned long is not a uint64_t on 32-bit platforms. The zfs.4 manpage documents this variable as a uint, and it is only compared with other variables of type int, so uint_t makes more sense than unsigned long. (I also wasn't sure if ULONG would work as a ZFS_MODULE_PARAM type on other OS's)
* zfs: merge openzfs/zfs@ad0a55461Martin Matuska2023-05-239-111/+940
| | | | | | | | | | | | | | | Notable upstream pull request merges: #12355 Teach zpool scrub to scrub only blocks in error log #14811 Refine special_small_blocks property validation #14854 zil: Some micro-optimizations #14855 zil: Free lwb_buf after write completion #14860 Fixes for issues identified by recent Coverity defect reports #14861 Probe vdevs before marking removed #14873 Add the ability to uninitialize a zpool #14875 Hold db_mtx when updating db_state Obtained from: OpenZFS OpenZFS commit: ad0a554614b096698d9969340c4c593690042d5b
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | 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
* zfs: merge openzfs/zfs@e61076683Martin Matuska2023-05-1214-244/+614
| | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #14744 Optimize check_filesystem() and process_error_log() #14773 Allow zhack label repair to restore detached devices #14794 zpool import -m also removing spare and cache when log device is missing #14805 Simplify and optimize random_int_between() #14813 Enable the head_errlog feature to remove errors #14816 Fix two abd_gang_add_gang() issues #14817 Verify block pointers before writing them out #14819 Add dmu_tx_hold_append() interface #14823 Remove single parent assertion from zio_nowait() #14824 Plug memory leak in zfsdev_state #14825 Block cloning dbuf fixes #14828 Remove duplicate code in l2arc_evict() #14837 Fixes in head_errlog feature with encryption #14839 Prevent panic during concurrent snapshot rollback and zvol read #14853 zil: Don't expect zio_shrink() to succeed Obtained from: OpenZFS OpenZFS commit: e6107668385044718b0a73330ed6423650806473
* zfs: merge openzfs/zfs@d96e29576Martin Matuska2023-05-0334-164/+447
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable 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 migration Obtained from: OpenZFS OpenZFS commit: d96e29576c89e6e547cb82b477651d2b85ea0fed
* stand: back out the most of the horrible aarch64 kludgeWarner Losh2023-05-011-5/+8
| | | | | | | | | Add one ifdef to upstrem code and get rid of compiling the horrible checked-in aarch64 assembler for the boot loader that the loader will never use. I'll attempt to upstream this and adjust as needed. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D39897
* Fix BLAKE3 aarch64 assembly for FreeBSD and macOSTino Reichardt2023-04-272-4511/+4057
| | | | | | | | | | | The x18 register isn't useable within FreeBSD kernel space, so we have to fix the BLAKE3 aarch64 assembly for not using it. The source files are here: https://github.com/mcmilk/BLAKE3-tests Reviewed-by: Kyle Evans <kevans@FreeBSD.org> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #14728
* zfs: Fix positive ABD size assertion in abd_verify().Mateusz Guzik2023-04-261-1/+2
| | | | | | | | | | | | | | | | | | | | | This cherry-picks upstream: commit bba7cbf0a481ab16f9a9a4874b7dbd5682e4d3a4 Author: Alexander Motin <mav@FreeBSD.org> Date: Wed Apr 26 12:20:43 2023 -0400 Fix positive ABD size assertion in abd_verify(). Gang ABDs without childred are legal, and they do have zero size. For other ABD types zero size doesn't have much sense and likely not working correctly now. Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #14795 Sponsored by: Rubicon Communications, LLC ("Netgate")
* zfs: make zfs_vfs_held() definition consistent with declarationDimitry Andric2023-04-251-1/+1
| | | | | | | | | | | | Noticed while attempting to change boolean_t into an actual bool: in include/sys/zfs_ioctl_impl.h, zfs_vfs_held() is declared to return a boolean_t, but in module/os/freebsd/zfs/zfs_ioctl_os.c it is defined to return an int. Make the definition match the declaration. Obtained from: https://github.com/openzfs/zfs/commit/62cc9d4f6 Reviewed by: jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39753