aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/module/zfs/sa.c
Commit message (Collapse)AuthorAgeFilesLines
* zfs: merge openzfs/zfs@3084336aeMartin Matuska2025-05-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #14876 b048bfa9c Allow opt-in of zvol blocks in special class #16486 b6916f995 ARC: parallel eviction #17169 1a8f5ad3b zvol: Enable zvol threading functionality on FreeBSD #17209 c17bdc491 More aggressively assert that db_mtx protects db.db_data #17218 734eba251 Wire O_DIRECT also to Uncached I/O #17246 49fbdd453 Introduce zfs rewrite subcommand #17255 b1ccab172 ARC: Avoid overflows in arc_evict_adj() #17280 848794503 zcp: get_prop: fix encryptionroot and encryption #17301 086105f4c Cause zpool scan resume commands to get logged in history #17306 246e5883b zfs_valstr: update zio_flag strings for ZIO_FLAG_PREALLOCATED #17309 78628a5c1 FreeBSD: Use new SYSCTL_SIZEOF() #17314 89a8a9158 ARC: Notify dbuf cache about target size reduction #17319 8b9c4e643 spa: clear checkpoint information during retry #17339 d5616ad34 Increase meta-dnode redundancy in "some" mode #17340 ea74cdedd Fix 2 bugs in non-raw send with encryption #17342 e55225be3 Add explicit DMU_DIRECTIO checks #17343 d8a33bc0a icp: Use explicit_memset() exclusively in gcm_clear_ctx() #17344 -multiple libzfs_core: add ZFS_IOC_TRACE envvar to enable ioctl tracing #17348 f0baaa329 arcstat: prevent ZeroDivisionError when L2ARC becomes empty #17353 83fa80a55 dmu_objset_hold_flags() should call dsl_dataset_rele_flags() on error #17355 -multiple Allow txg_wait_synced_flags() and dmu_tx_assign() to return when the pool suspends #17361 5c30b2438 Fix null dereference in spa_vdev_remove_cancel_sync() #17363 ddf28f27c Fix off-by-one bug in range tree code #17367 06fa8f3f6 zfs_cmd: reorganise zfs_cmd_t to match original size #17368 2a91d577b Expose dataset encryption status via fast stat path #17372 c464f1d01 Only interrupt active disk I/Os in failmode=continue #17373 9d76950d6 ZIL: Improve write log size accounting #17377 -multiple tunables: general code cleanup #17379 fa697b94e FreeBSD: Add posix_fadvise(POSIX_FADV_WILLNEED) support #17384 3dfa98d01 ZVOL: Make zvol_inhibit_dev module parameter platform-independent Obtained from: OpenZFS OpenZFS commit: 3084336ae4a4e114e41be3177a3f5c779d66e93c
* zfs: merge openzfs/zfs@4abc21b28Martin Matuska2025-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #17015 201d26294 Add receive:append permission for limited receive #17020 94a3fabcb Unified allocation throttling #17038 1b495eeab FDT dedup log sync -- remove incremental #17073 9250403ba Make ganging redundancy respect redundant_metadata property #17077 0433523ca Verify every block pointer is either embedded, hole, or has a valid DVA #17101 83fa051ce spl_vfs: fix vrele task runner signature mismatch #17113 09f4dd06c Prefer embedded blocks to dedup #17120 0ea44e576 Fix deduplication of overridden blocks #17124 62a9d372f zed: Print return code on failed zpool_prepare_disk #17126 3cd9934a4 Some arc_release() cleanup #17136 d033f2676 Always perform bounds-checking in metaslab_free_concrete #17142 45e9b54e9 kstat: allow multi-level module names #17145 676b7ef10 Fix deadlock on I/O errors during device removal #17180 4abc21b28 Block remap for cloned blocks on device removal Obtained from: OpenZFS OpenZFS commit: 4abc21b28c22d93c06e1e51c1f9019b4fa4e0d51
* zfs: merge openzfs/zfs@b10992582Martin Matuska2024-10-111-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #9416 -multiple zio_compress: introduce max size threshold #10018 a10e552b9 Adding Direct IO Support #15147 e419a63bf xattr dataset prop: change defaults to sa #15454 7e957fde7 send/recv: open up additional stream feature flags #15810 0d77e738e Defer resilver only when progress is above a threshold #15921 3cf2bfa57 Allocate zap_attribute_t from kmem instead of stack #16483 -multiple dmu_objset: replace dnode_hash impl with cityhash4 #16485 8be2f4c3d zio_resume: log when unsuspending the pool #16491 88433e640 sys/types32.h: Remove struct timeval32 from libspl header #16496 f245541e2 zfs_file: implement zfs_file_deallocate for FreeBSD 14 #16511 308f7c2f1 Fix an uninitialized data access #16529 29c9e6c32 Fix handling of DNS names with '-' in them for sharenfs #16531 ddf5f34f0 Avoid fault diagnosis if multiple vdevs have errors #16539 6f50f8e16 zfs_log: add flex array fields to log record structs #16546 d40d40913 Evicting too many bytes from MFU metadata #16551 3014dcb76 Reduce and handle EAGAIN errors on AIO label reads #16554 80645d658 FreeBSD: restore zfs_znode_update_vfs() #16565 832f66b21 FreeBSD: Sync taskq_cancel_id() returns with Linux #16567 48d1be254 Properly release key in spa_keystore_dsl_key_hold_dd() #16569 141368a4b Restrict raidz faulted vdev count #16583 c84a37ae9 lua: add flex array field to TString type #16584 86737c592 Avoid computing strlen() inside loops #16587 d34d4f97a snapdir: add 'disabled' value to make .zfs inaccessible #16593 224393a32 feature: large_microzap #16597 412105977 Temporarily disable Direct IO by default #16605 4ebe674d9 ARC: Cache arc_c value during arc_evict() Backported pull request merges: #16613 ab777f436 Return boolean_t in inline functions of lib/libspl/include/sys/uio.h #16616 efeb60b86 FreeBSD: ignore some includes when not building kernel #16635 ---TBD--- zdb: fix printf format in dump_zap() Obtained from: OpenZFS OpenZFS commit: b109925820fb79db3e37670c159977f03edd950f OpenZFS tag: 2.3.0-rc1
* zfs: merge openzfs/zfs@9c56b8ec7Martin Matuska2024-08-101-30/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #15817 5536c0dee Sync AUX label during pool import #15889 c7ada64bb ddt: dedup table quota enforcement #15890 62e7d3c89 ddt: add support for prefetching tables into the ARC #15894 e26b3771e spa_preferred_class: pass the entire zio #15894 d54d0fff3 dnode: allow storage class to be overridden by object type #16197 55427add3 Several improvements to ARC shrinking #16217 -multiple JSON output for various zfs and zpool subcommands #16248 24e6585e7 libzfs.h: Set ZFS_MAXPROPLEN and ZPOOL_MAXPROPLEN to ZAP_MAXVALUELEN #16264 9dfc5c4a0 Fix long_free_dirty accounting for small files #16268 ed0db1cc8 Make txg_wait_synced conditional in zfsvfs_teardown, for FreeBSD #16288 d60debbf5 Fix sa_add_projid to lookup and update SA_ZPL_DXATTR #16308 ec580bc52 zfs: add bounds checking to zil_parse #16310 c21dc56ea Fix zdb_dump_block for little endian #16315 7ddc1f737 zil: add stats for commit failure/fallback #16326 b0bf14cdb abd: lift ABD zero scan from zio_compress_data() to abd_cmp_zero() #16337 c8184d714 Block cloning conditionally destroy ARC buffer #16338 dbe07928b Add support for multiple lines to the sharenfs property for FreeBSD #16374 1a3e32e6a Cleanup DB_DNODE() macros usage #16374 ed87d456e Skip dnode handles use when not needed #16346 fb6d8cf22 Add some missing vdev properties #16364 670147be5 zvol: ensure device minors are properly cleaned up #16382 dea8fabf7 FreeBSD: Fix RLIMIT_FSIZE handling for block cloning #16387 aef452f10 Improve zfs_blkptr_verify() #16395 cbcb52243 Fix the names of some FreeBSD sysctls in include/tunables.cfg #16401 5b9f3b766 Soften pruning threshold on not evictable metadata #16404 cdd53fea1 FreeBSD: Add missing memory reclamation accounting #16404 1fdcb653b Once more refactor arc_summary output #16419 1f5bf91a8 Fix memory corruption during parallel zpool import with -o cachefile #16426 cf6e8b218 zstream: remove duplicate highbit64 definition Obtained from: OpenZFS OpenZFS commit: 9c56b8ec7855119c8948c551ee28086a11465a56
* zfs: merge openzfs/zfs@9198de8f1Martin Matuska2023-11-081-1/+2
| | | | | | | | | | | | | | | | | 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@431083f75Martin Matuska2023-04-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notable 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: OpenZFS OpenZFS commit: 431083f75bdd3efaee992bdd672625ec7240d252
* zfs: merge openzfs/zfs@d62bafee9Martin Matuska2022-10-041-1/+1
| | | | | | | | | | | | | | | Notable upstream pull request merges: #13857 Enforce "-F" flag on resuming recv of full/newfs on existing dataset #13928 Revert "Reduce dbuf_find() lock contention" #13928 Dynamically size dbuf hash mutex array #13930 zpool: Don't print "repairing" on force faulted drives #13938 Bring per_txg_dirty_frees_percent back to 30 #13939 Fix panic in dsl_process_sub_livelist for EINTR #13954 Fix bad free in skein code #13967 Fix potential NULL pointer dereference in dsl_dataset_promote_check() Obtained from: OpenZFS OpenZFS commit: d62bafee9fc38f8b9653c531e1861e83dcba4618
* zfs: merge openzfs/zfs@b3d0568cfMartin Matuska2022-08-131-1/+1
| | | | | | | | | | | | | | Notable upstream pull request merges: #9372 Implement a new type of zfs receive: corrective receive (-c) #13635 Add snapshots_changed as property #13636 Add support for per dataset zil stats and use wmsum counters #13643 Fix scrub resume from newly created hole #13670 Fix memory allocation for the checksum benchmark #13695 Skip checksum benchmarks on systems with slow cpu #13711 zpool: fix redundancy check after vdev removal Obtained from: OpenZFS OpenZFS commit: b3d0568cfd65458c92f7ab3d7bb709087992628e
* zfs: merge openzfs/zfs@cb01da680Martin Matuska2022-07-071-2/+2
| | | | | | | | | | | | | | | | | Notable upstream pull request merges: #12438 Avoid panic with recordsize > 128k, raw sending and no large_blocks #13015 Fix dnode byteswapping #13256 Add a "zstream decompress" subcommand #13555 Scrub mirror children without BPs #13576 Several sorted scrub optimizations #13579 Fix and disable blocks statistics during scrub #13582 Several B-tree optimizations #13591 Avoid two 64-bit divisions per scanned block #13606 Avoid memory copies during mirror scrub #13613 Avoid memory copy when verifying raidz/draid parity Obtained from: OpenZFS OpenZFS commit: cb01da68057dcb9e612e8d2e97d058c46c3574af
* zfs: merge openzfs/zfs@c0cf6ed67Martin Matuska2022-05-181-2/+2
| | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #10662 zvol_wait: Ignore locked zvols #12789 Improve log spacemap load time #12812 Improved zpool status output, list all affected datasets #13277 FreeBSD: Use NDFREE_PNBUF if available #13302 Make zfs_max_recordsize default to 16M #13311 Fix error handling in FreeBSD's get/putpages VOPs #13345 FreeBSD: Fix translation from ABD to physical pages #13373 zfs: holds: dequadratify #13375 Corrected edge case in uncompressed ARC->L2ARC handling #13388 Improve mg_aliquot math #13405 Reduce dbuf_find() lock contention #13406 FreeBSD: use zero_region instead of allocating a dedicated page Obtained from: OpenZFS OpenZFS commit: c0cf6ed6792e545fd614c2a88cb53756db7e03f8
* zfs: merge openzfs/zfs@bc3f12bfa (master) into mainMartin Matuska2022-03-291-8/+9
| | | | | | | | | | | | | | Notable upstream pull request merges: #12083 libzfs: FreeBSD doesn't resize partitions for you #13106 add physical device size to SIZE column in 'zpool list -v' #13158 Allow zfs send to exclude datasets #13190 module: zfs: zio_inject: zio_match_handler: don't << -1 #13219 FreeBSD: add missing replay check to an assert in zfs_xvattr_set #13220 module: freebsd: avoid a taking a destroyed lock in zfs_zevent bits #13221 Fix ACL checks for NFS kernel server Obtained from: OpenZFS OpenZFS commit: bc3f12bfac152a0c28951cec92340ba14f9ccee9
* zfs: merge openzfs/zfs@17b2ae0b2 (master) into mainMartin Matuska2022-01-221-16/+15
| | | | | | | | | | | | | | | | | | | Notable upstream pull request merges: #12766 Fix error propagation from lzc_send_redacted #12805 Updated the lz4 decompressor #12851 FreeBSD: Provide correct file generation number #12857 Verify dRAID empty sectors #12874 FreeBSD: Update argument types for VOP_READDIR #12896 Reduce number of arc_prune threads #12934 FreeBSD: Fix zvol_*_open() locking #12947 lz4: Cherrypick fix for CVE-2021-3520 #12961 FreeBSD: Fix leaked strings in libspl mnttab #12964 Fix handling of errors from dmu_write_uio_dbuf() on FreeBSD #12981 Introduce a flag to skip comparing the local mac when raw sending #12985 Avoid memory allocations in the ARC eviction thread Obtained from: OpenZFS OpenZFS commit: 17b2ae0b24d487fdda2ef1098ec26fa7f79a61f6
* zfs: merge openzfs/zfs@5e2c8338b (master) into mainMartin Matuska2021-06-261-1/+1
| | | | | | | | | | | | | | Notable upstream pull request merges: #12183 Optimize small random numbers generation #12227 Revert Consolidate arc_buf allocation checks #12266 Fix flag copying in resume case #12273 zfs_metaslab_mem_limit should be 25 instead of 75 #12276 Update cache file when setting compatibility property #12280 Help compiller optimize out abd_verify() #12282 FreeBSD: fix compilation of FreeBSD world after 29274c9f6 Obtained from: OpenZFS OpenZFS commit: 5e2c8338bf17d31b44eb1dbbb3c9b6a0f64e96ee
* zfs: merge OpenZFS master-436ab35a5Martin Matuska2021-02-161-3/+3
| | | | | | | | | | | - speed up writing to ZFS pools without ZIL devices (aa755b3) - speed up importing ZFS pools (2d8f72d, a0e0199, cf0977a) ... MFC after: 2 weeks Reviewed by: mjg (partial) Tested by: pho Differential Revision: https://reviews.freebsd.org/D28677
* ZFS: MFV 2.0-rc1-ga00c61Matt Macy2020-08-281-1/+0
| | | | Notes: svn path=/head/; revision=364930
* Initial import from vendor-sys branch of openzfsMatt Macy2020-08-241-0/+2258
Notes: svn path=/head/; revision=364740