]> git.proxmox.com Git - mirror_zfs.git/log
mirror_zfs.git
2 months agoconfig: remove HAVE_INODE_SET_IVERSION
Rob Norris [Sat, 24 Aug 2024 10:38:37 +0000 (20:38 +1000)]
config: remove HAVE_INODE_SET_IVERSION

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILEMAP_RANGE_HAS_PAGE
Rob Norris [Sat, 24 Aug 2024 10:36:14 +0000 (20:36 +1000)]
config: remove HAVE_FILEMAP_RANGE_HAS_PAGE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILE_FADVISE
Rob Norris [Sat, 24 Aug 2024 10:33:08 +0000 (20:33 +1000)]
config: remove HAVE_FILE_FADVISE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BIO_BI_STATUS and bio error compat
Rob Norris [Sat, 24 Aug 2024 10:19:40 +0000 (20:19 +1000)]
config: remove HAVE_BIO_BI_STATUS and bio error compat

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_ACL_REFCOUNT
Rob Norris [Sat, 24 Aug 2024 10:08:27 +0000 (20:08 +1000)]
config: remove HAVE_ACL_REFCOUNT

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_[24]ARGS_VFS_GETATTR
Rob Norris [Sat, 24 Aug 2024 10:06:53 +0000 (20:06 +1000)]
config: remove HAVE_[24]ARGS_VFS_GETATTR

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BLK_QUEUE_SECDISCARD
Rob Norris [Sun, 18 Aug 2024 01:41:00 +0000 (11:41 +1000)]
config: remove HAVE_BLK_QUEUE_SECDISCARD

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_RENAME2
Rob Norris [Sun, 18 Aug 2024 01:37:31 +0000 (11:37 +1000)]
config: remove HAVE_RENAME2

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GENERIC_SETXATTR
Rob Norris [Fri, 16 Aug 2024 11:05:04 +0000 (21:05 +1000)]
config: remove HAVE_GENERIC_SETXATTR

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILE_AIO_FSYNC
Rob Norris [Fri, 16 Aug 2024 11:01:17 +0000 (21:01 +1000)]
config: remove HAVE_FILE_AIO_FSYNC

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove ZFS_GLOBAL_NODE_PAGE_STATE
Rob Norris [Fri, 16 Aug 2024 10:17:19 +0000 (20:17 +1000)]
config: remove ZFS_GLOBAL_NODE_PAGE_STATE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_GET_DENTRY_INODE
Rob Norris [Fri, 16 Aug 2024 08:50:48 +0000 (18:50 +1000)]
config: remove HAVE_XATTR_GET_DENTRY_INODE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_LIST_SIMPLE
Rob Norris [Fri, 16 Aug 2024 08:19:35 +0000 (18:19 +1000)]
config: remove HAVE_XATTR_LIST_SIMPLE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_(GET|SET|LIST)_HANDLER
Rob Norris [Fri, 16 Aug 2024 08:17:39 +0000 (18:17 +1000)]
config: remove HAVE_XATTR_(GET|SET|LIST)_HANDLER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_HANDLER_NAME
Rob Norris [Fri, 16 Aug 2024 08:11:21 +0000 (18:11 +1000)]
config: remove HAVE_XATTR_HANDLER_NAME

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_ITERATE/HAVE_VFS_ITERATE_SHARED
Rob Norris [Fri, 16 Aug 2024 07:52:19 +0000 (17:52 +1000)]
config: remove HAVE_VFS_ITERATE/HAVE_VFS_ITERATE_SHARED

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_COPY_FILE_RANGE
Rob Norris [Fri, 16 Aug 2024 07:35:47 +0000 (17:35 +1000)]
config: remove HAVE_VFS_COPY_FILE_RANGE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SUPER_USER_NS
Rob Norris [Fri, 16 Aug 2024 07:33:16 +0000 (17:33 +1000)]
config: remove HAVE_SUPER_USER_NS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_REQ_OP_* and HAVE_REQ_*
Rob Norris [Fri, 16 Aug 2024 07:31:53 +0000 (17:31 +1000)]
config: remove HAVE_REQ_OP_* and HAVE_REQ_*

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_(GET|PUT)_LINK_DELAYED
Rob Norris [Fri, 16 Aug 2024 06:52:28 +0000 (16:52 +1000)]
config: remove HAVE_(GET|PUT)_LINK_DELAYED

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_POSIX_ACL_VALID_WITH_NS
Rob Norris [Fri, 16 Aug 2024 07:15:40 +0000 (17:15 +1000)]
config: remove HAVE_POSIX_ACL_VALID_WITH_NS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_GET_ACL_HANDLE_CACHE
Rob Norris [Fri, 16 Aug 2024 07:00:43 +0000 (17:00 +1000)]
config: remove HAVE_KERNEL_GET_ACL_HANDLE_CACHE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_INODE_LOCK_SHARED
Rob Norris [Fri, 16 Aug 2024 06:57:45 +0000 (16:57 +1000)]
config: remove HAVE_INODE_LOCK_SHARED

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_IN_COMPAT_SYSCALL
Rob Norris [Fri, 16 Aug 2024 06:55:55 +0000 (16:55 +1000)]
config: remove HAVE_IN_COMPAT_SYSCALL

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GROUP_INFO_GID
Rob Norris [Fri, 16 Aug 2024 06:54:44 +0000 (16:54 +1000)]
config: remove HAVE_GROUP_INFO_GID

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_CURRENT_TIME
Rob Norris [Fri, 16 Aug 2024 06:50:01 +0000 (16:50 +1000)]
config: remove HAVE_CURRENT_TIME

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_CPU_HOTPLUG
Rob Norris [Fri, 16 Aug 2024 06:25:17 +0000 (16:25 +1000)]
config: remove HAVE_CPU_HOTPLUG

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BLK_QUEUE_WRITE_CACHE/HAVE_BLK_QUEUE_FLUSH
Rob Norris [Fri, 16 Aug 2024 06:23:25 +0000 (16:23 +1000)]
config: remove HAVE_BLK_QUEUE_WRITE_CACHE/HAVE_BLK_QUEUE_FLUSH

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BIO_BI_OPF
Rob Norris [Fri, 16 Aug 2024 06:05:21 +0000 (16:05 +1000)]
config: remove HAVE_BIO_BI_OPF

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_1ARG_SUBMIT_BIO
Rob Norris [Fri, 16 Aug 2024 05:45:56 +0000 (15:45 +1000)]
config: remove HAVE_1ARG_SUBMIT_BIO

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GET_LINK_COOKIE
Rob Norris [Mon, 5 Aug 2024 12:19:15 +0000 (22:19 +1000)]
config: remove HAVE_GET_LINK_COOKIE

As far as I can tell, this never made it to a real release. It was
introduced in 6b2553918d8b and removed a couple of weeks later in
fceef393a538. This was all part of the development of what would become
4.5. So I assume this was OpenZFS chasing upstream development at the
time.

    fceef393a538 viro 2015-12-30 switch ->get_link() to delayed_call, kill ->put_link()
    cd3417c8fc95 viro 2015-12-29 kill free_page_put_link()
    0d0def49d05a viro 2015-12-08 teach nfs_get_link() to work in RCU mode
    1a384eaac265 viro 2015-12-08 teach proc_self_get_link()/proc_thread_self_get_link() to work in RCU mode
    6a6c99049635 viro 2015-12-08 teach shmem_get_link() to work in RCU mode
    d3883d4f9344 viro 2015-12-08 teach page_get_link() to work in RCU mode
    6b2553918d8b viro 2015-12-08 replace ->follow_link() with new method that could stay in RCU mode

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_RENAME2_OPERATIONS_WRAPPER
Rob Norris [Mon, 5 Aug 2024 09:56:01 +0000 (19:56 +1000)]
config: remove HAVE_RENAME2_OPERATIONS_WRAPPER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_FILE_OPERATIONS_EXTEND
Rob Norris [Mon, 5 Aug 2024 09:53:26 +0000 (19:53 +1000)]
config: remove HAVE_VFS_FILE_OPERATIONS_EXTEND

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_NEW_SYNC_READ
Rob Norris [Mon, 5 Aug 2024 09:48:47 +0000 (19:48 +1000)]
config: remove HAVE_NEW_SYNC_READ

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_XATTR_(GET|SET|LIST)_DENTRY
Rob Norris [Mon, 5 Aug 2024 09:47:27 +0000 (19:47 +1000)]
config: remove HAVE_XATTR_(GET|SET|LIST)_DENTRY

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_WAIT_ON_BIT_ACTION
Rob Norris [Sun, 4 Aug 2024 04:36:28 +0000 (14:36 +1000)]
config: remove HAVE_WAIT_ON_BIT_ACTION

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_DIRECT_IO_ITER_RW_OFFSET
Rob Norris [Sun, 4 Aug 2024 04:34:02 +0000 (14:34 +1000)]
config: remove HAVE_VFS_DIRECT_IO_ITER_RW_OFFSET

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_PUT_LINK_NAMEIDATA
Rob Norris [Sun, 4 Aug 2024 03:58:24 +0000 (13:58 +1000)]
config: remove HAVE_PUT_LINK_NAMEIDATA

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_LSEEK_EXECUTE
Rob Norris [Sun, 4 Aug 2024 03:51:12 +0000 (13:51 +1000)]
config: remove HAVE_LSEEK_EXECUTE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FOLLOW_LINK_NAMEIDATA
Rob Norris [Sun, 4 Aug 2024 03:48:12 +0000 (13:48 +1000)]
config: remove HAVE_FOLLOW_LINK_NAMEIDATA

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_D_REVALIDATE_NAMEIDATA
Rob Norris [Sun, 4 Aug 2024 03:31:02 +0000 (13:31 +1000)]
config: remove HAVE_D_REVALIDATE_NAMEIDATA

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_3ARGS_VFS_GETATTR
Rob Norris [Sun, 4 Aug 2024 03:18:20 +0000 (13:18 +1000)]
config: remove HAVE_3ARGS_VFS_GETATTR

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_3ARGS_BDI_SETUP_AND_REGISTER
Rob Norris [Sun, 4 Aug 2024 03:16:42 +0000 (13:16 +1000)]
config: remove HAVE_3ARGS_BDI_SETUP_AND_REGISTER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_DIRECT_IO_IOVEC
Rob Norris [Sun, 4 Aug 2024 03:08:49 +0000 (13:08 +1000)]
config: remove HAVE_VFS_DIRECT_IO_IOVEC

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove SHRINK_CONTROL_HAS_NID
Rob Norris [Sun, 4 Aug 2024 00:34:18 +0000 (10:34 +1000)]
config: remove SHRINK_CONTROL_HAS_NID

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_VFS_RW_ITERATE
Rob Norris [Sun, 4 Aug 2024 00:28:38 +0000 (10:28 +1000)]
config: remove HAVE_VFS_RW_ITERATE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_USER_NS_COMMON_INUM
Rob Norris [Sun, 4 Aug 2024 00:26:48 +0000 (10:26 +1000)]
config: remove HAVE_USER_NS_COMMON_INUM

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SPLIT_SHRINKER_CALLBACK and HAVE_SINGLE_SHRINKER_CALLBACK
Rob Norris [Sun, 4 Aug 2024 00:11:03 +0000 (10:11 +1000)]
config: remove HAVE_SPLIT_SHRINKER_CALLBACK and HAVE_SINGLE_SHRINKER_CALLBACK

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SET_CACHED_ACL_USABLE
Rob Norris [Sat, 3 Aug 2024 23:50:00 +0000 (09:50 +1000)]
config: remove HAVE_SET_CACHED_ACL_USABLE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_SET_ACL
Rob Norris [Sat, 3 Aug 2024 23:47:34 +0000 (09:47 +1000)]
config: remove HAVE_SET_ACL

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_POSIX_ACL_RELEASE and HAVE_POSIX_ACL_RELEASE_GPL_ONLY
Rob Norris [Sat, 3 Aug 2024 23:42:35 +0000 (09:42 +1000)]
config: remove HAVE_POSIX_ACL_RELEASE and HAVE_POSIX_ACL_RELEASE_GPL_ONLY

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE___POSIX_ACL_CHMOD
Rob Norris [Sat, 3 Aug 2024 04:04:08 +0000 (14:04 +1000)]
config: remove HAVE___POSIX_ACL_CHMOD

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_PERCPU_COUNTER_INIT_WITH_GFP
Rob Norris [Sat, 3 Aug 2024 04:01:15 +0000 (14:01 +1000)]
config: remove HAVE_PERCPU_COUNTER_INIT_WITH_GFP

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_LINUX_BLK_CGROUP_HEADER
Rob Norris [Sat, 3 Aug 2024 03:57:19 +0000 (13:57 +1000)]
config: remove HAVE_LINUX_BLK_CGROUP_HEADER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_TIMER_LIST_FLAGS
Rob Norris [Sat, 3 Aug 2024 03:56:01 +0000 (13:56 +1000)]
config: remove HAVE_KERNEL_TIMER_LIST_FLAGS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_KERNEL_STRSCPY
Rob Norris [Sat, 3 Aug 2024 03:54:24 +0000 (13:54 +1000)]
config: remove HAVE_KERNEL_STRSCPY

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_IO_SCHEDULE_TIMEOUT
Rob Norris [Sat, 3 Aug 2024 03:31:43 +0000 (13:31 +1000)]
config: remove HAVE_IO_SCHEDULE_TIMEOUT

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_INODE_SET_FLAGS
Rob Norris [Sat, 3 Aug 2024 03:29:51 +0000 (13:29 +1000)]
config: remove HAVE_INODE_SET_FLAGS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_GENERIC_WRITE_CHECKS_KIOCB
Rob Norris [Sat, 3 Aug 2024 03:28:29 +0000 (13:28 +1000)]
config: remove HAVE_GENERIC_WRITE_CHECKS_KIOCB

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FSYNC_RANGE
Rob Norris [Sat, 3 Aug 2024 03:27:16 +0000 (13:27 +1000)]
config: remove HAVE_FSYNC_RANGE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILE_INODE
Rob Norris [Sat, 3 Aug 2024 03:23:19 +0000 (13:23 +1000)]
config: remove HAVE_FILE_INODE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FILE_DENTRY
Rob Norris [Sat, 3 Aug 2024 03:22:38 +0000 (13:22 +1000)]
config: remove HAVE_FILE_DENTRY

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_FALLOC_FL_ZERO_RANGE
Rob Norris [Sat, 3 Aug 2024 03:21:36 +0000 (13:21 +1000)]
config: remove HAVE_FALLOC_FL_ZERO_RANGE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_ENCODE_FH_WITH_INODE
Rob Norris [Sat, 3 Aug 2024 03:12:07 +0000 (13:12 +1000)]
config: remove HAVE_ENCODE_FH_WITH_INODE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_D_PRUNE_ALIASES
Rob Norris [Sat, 3 Aug 2024 03:07:13 +0000 (13:07 +1000)]
config: remove HAVE_D_PRUNE_ALIASES

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_D_MAKE_ROOT
Rob Norris [Sat, 3 Aug 2024 03:02:48 +0000 (13:02 +1000)]
config: remove HAVE_D_MAKE_ROOT

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_DIRTY_INODE_WITH_FLAGS
Rob Norris [Sat, 3 Aug 2024 02:57:21 +0000 (12:57 +1000)]
config: remove HAVE_DIRTY_INODE_WITH_FLAGS

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_DENTRY_D_U_ALIASES
Rob Norris [Sat, 3 Aug 2024 02:56:04 +0000 (12:56 +1000)]
config: remove HAVE_DENTRY_D_U_ALIASES

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_CLEAR_INODE and HAVE_EVICT_INODE
Rob Norris [Sat, 3 Aug 2024 02:55:00 +0000 (12:55 +1000)]
config: remove HAVE_CLEAR_INODE and HAVE_EVICT_INODE

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_BIO_BVEC_ITER
Rob Norris [Sat, 3 Aug 2024 02:52:05 +0000 (12:52 +1000)]
config: remove HAVE_BIO_BVEC_ITER

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove HAVE_1ARG_BIO_END_IO_T
Rob Norris [Sat, 3 Aug 2024 02:39:20 +0000 (12:39 +1000)]
config: remove HAVE_1ARG_BIO_END_IO_T

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoconfig: remove checks with unused defines
Rob Norris [Sat, 3 Aug 2024 00:20:12 +0000 (10:20 +1000)]
config: remove checks with unused defines

All of these set a #define that doesn't appear anywhere in the tree.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoMETA: set Linux minimum version to 4.18
Rob Norris [Fri, 2 Aug 2024 12:33:17 +0000 (22:33 +1000)]
META: set Linux minimum version to 4.18

This sets RHEL8's base kernel[1] as the floor, and includes the oldest
kernel.org LTS (4.19).

1. https://access.redhat.com/articles/3078#RHEL8

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479

2 months agoFix handling of DNS names with '-' in them for sharenfs
rmacklem [Tue, 17 Sep 2024 20:56:26 +0000 (13:56 -0700)]
Fix handling of DNS names with '-' in them for sharenfs

An old FreeBSD bugzilla report PR#168158 notes that DNS
names with '-'s in them cannot be used for the sharenfs
property.  This patch fixes the parsing of these DNS names.
The only negative affect this patch might have is that,
if a user has incorrectly separated options with a '-'
the sharenfs setting will no longer work once this patch
is applied.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rick Macklem <rmacklem@uoguelph.ca>
Closes #16529

2 months agosa_impl: fix SA header bitfield docs
Rob Norris [Tue, 17 Sep 2024 20:53:39 +0000 (06:53 +1000)]
sa_impl: fix SA header bitfield docs

Off by one, confused me a while!

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16500

2 months agoLinux 6.10 compat: Fix tracepoints definitions
Pavel Snajdr [Tue, 17 Sep 2024 20:38:02 +0000 (22:38 +0200)]
Linux 6.10 compat: Fix tracepoints definitions

__string field definition includes the source variable for a value
of the string when the TP hits; in 6.10+ kernels, __assign_str()
uses that to copy a value from src to the string, with older
kernels, __assign_str still accepted src as a second parameter.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Co-authored-by: Tony Hutter <hutter2@llnl.gov>
Closes #16475
Closes #16515

2 months agoRemove extra newline from spa_set_allocator().
Alexander Motin [Tue, 17 Sep 2024 20:15:42 +0000 (16:15 -0400)]
Remove extra newline from spa_set_allocator().

zfs_dbgmsg() does not need newline at the end of the message.

While there, slightly update/sync FreeBSD __dprintf().

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16536

2 months agoZTS: Use QEMU for tests on Linux and FreeBSD
Tino Reichardt [Mon, 17 Jun 2024 14:52:58 +0000 (16:52 +0200)]
ZTS: Use QEMU for tests on Linux and FreeBSD

This commit adds functional tests for these systems:
- AlmaLinux 8, AlmaLinux 9, ArchLinux
- CentOS Stream 9, Fedora 39, Fedora 40
- Debian 11, Debian 12
- FreeBSD 13, FreeBSD 14, FreeBSD 15
- Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04

- enabled by default:
 - AlmaLinux 8, AlmaLinux 9
 - Debian 11, Debian 12
 - Fedora 39, Fedora 40
 - FreeBSD 13, FreeBSD 14

Workflow for each operating system:
- install qemu on the github runner
- download current cloud image of operating system
- start and init that image via cloud-init
- install dependencies and poweroff system
- start system and build openzfs and then poweroff again
- clone build system and start 2 instances of it
- run functional testings and complete in around 3h
- when tests are done, do some logfile preparing
- show detailed results for each system
- in the end, generate the job summary

Real-world benefits from this PR:

1. The github runner scripts are in the zfs repo itself. That means
   you can just open a PR against zfs, like "Add Fedora 41 tester", and
   see the results directly in the PR. ZFS admins no longer need
   manually to login to the buildbot server to update the buildbot config
   with new version of Fedora/Almalinux.

2. Github runners allow you to run the entire test suite against your
   private branch before submitting a formal PR to openzfs. Just open a
   PR against your private zfs repo, and the exact same
   Fedora/Alma/FreeBSD runners will fire up and run ZTS. This can be
   useful if you want to iterate on a ZTS change before submitting a
   formal PR.

3. buildbot is incredibly cumbersome. Our buildbot config files alone
   are ~1500 lines (not including any build/setup scripts)!
   It's a huge pain to setup.

4. We're running the super ancient buildbot 0.8.12. It's so ancient
   it requires python2. We actually have to build python2 from source
   for almalinux9 just to get it to run. Ugrading to a more modern
   buildbot is a huge undertaking, and the UI on the newer versions is
   worse.

5. Buildbot uses EC2 instances. EC2 is a pain because:
   * It costs money
   * They throttle IOPS and CPU usage, leading to mysterious,
   * hard-to-diagnose, failures and timeouts in ZTS.
   * EC2 is high maintenance. We have to setup security groups, SSH
   * keys, networking, users, etc, in AWS and it's a pain. We also
   * have to periodically go in an kill zombie EC2 instances that
   * buildbot is unable to kill off.

6. Buildbot doesn't always handle failures well. One of the things we
   saw in the past was the FreeBSD builders would often die, and each
   builder death would take up a "slot" in buildbot. So we would
   periodically have to restart buildbot via a cron job to get the slots
   back.

7. This PR divides up the ZTS test list into two parts, launches two
   VMs, and on each VM runs half the test suite. The test results are
   then merged and shown in the sumary page. So we're basically
   parallelizing ZTS on the same github runner. This leads to lower
   overall ZTS runtimes (2.5-3 hours vs 4+ hours on buildbot), and one
   unified set of results per runner, which is nice.

8. Since the tests are running on a VM, we have much more control over
   what happens. We can capture the serial console output even if the
   test completely brings down the VM. In the future, we could also
   restart the test on the VM where it left off, so that if a single test
   panics the VM, we can just restart it and run the remaining ZTS tests
   (this functionaly is not yet implemented though, just an idea).

9. Using the runners, users can manually kill or restart a test run
   via the github IU. That really isn't possible with buildbot unless
   you're an admin.

10. Anecdotally, the tests seem to be more stable and constant under
    the QEMU runners.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #16537

2 months agoZTS: increase timeout of mmap_sync_001_pos
Tino Reichardt [Sun, 15 Sep 2024 07:42:55 +0000 (09:42 +0200)]
ZTS: increase timeout of mmap_sync_001_pos

On load the test needs sometimes a bit more time then just one second.
Doubling the time will help on the QEMU based testings.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16537

2 months agoZTS: fix raidz_expand_001_pos and raidz_expand_002_pos
Tino Reichardt [Tue, 6 Aug 2024 18:37:27 +0000 (20:37 +0200)]
ZTS: fix raidz_expand_001_pos and raidz_expand_002_pos

Sometimes the pool may start an auto scrub.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #16537

2 months agoZTS: fix zpool_status_008_pos test on qemu vm's
Tino Reichardt [Tue, 6 Aug 2024 14:48:45 +0000 (16:48 +0200)]
ZTS: fix zpool_status_008_pos test on qemu vm's

The test needs some adjusting within the timings.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Co-authored-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16537

2 months agoAdding Direct IO Support
Brian Atkinson [Sat, 14 Sep 2024 20:47:59 +0000 (16:47 -0400)]
Adding Direct IO Support

Adding O_DIRECT support to ZFS to bypass the ARC for writes/reads.

O_DIRECT support in ZFS will always ensure there is coherency between
buffered and O_DIRECT IO requests. This ensures that all IO requests,
whether buffered or direct, will see the same file contents at all
times. Just as in other FS's , O_DIRECT does not imply O_SYNC. While
data is written directly to VDEV disks, metadata will not be synced
until the associated  TXG is synced.
For both O_DIRECT read and write request the offset and request sizes,
at a minimum, must be PAGE_SIZE aligned. In the event they are not,
then EINVAL is returned unless the direct property is set to always (see
below).

For O_DIRECT writes:
The request also must be block aligned (recordsize) or the write
request will take the normal (buffered) write path. In the event that
request is block aligned and a cached copy of the buffer in the ARC,
then it will be discarded from the ARC forcing all further reads to
retrieve the data from disk.

For O_DIRECT reads:
The only alignment restrictions are PAGE_SIZE alignment. In the event
that the requested data is in buffered (in the ARC) it will just be
copied from the ARC into the user buffer.

For both O_DIRECT writes and reads the O_DIRECT flag will be ignored in
the event that file contents are mmap'ed. In this case, all requests
that are at least PAGE_SIZE aligned will just fall back to the buffered
paths. If the request however is not PAGE_SIZE aligned, EINVAL will
be returned as always regardless if the file's contents are mmap'ed.

Since O_DIRECT writes go through the normal ZIO pipeline, the
following operations are supported just as with normal buffered writes:
Checksum
Compression
Encryption
Erasure Coding
There is one caveat for the data integrity of O_DIRECT writes that is
distinct for each of the OS's supported by ZFS.
FreeBSD - FreeBSD is able to place user pages under write protection so
          any data in the user buffers and written directly down to the
  VDEV disks is guaranteed to not change. There is no concern
  with data integrity and O_DIRECT writes.
Linux - Linux is not able to place anonymous user pages under write
        protection. Because of this, if the user decides to manipulate
the page contents while the write operation is occurring, data
integrity can not be guaranteed. However, there is a module
parameter `zfs_vdev_direct_write_verify` that controls the
if a O_DIRECT writes that can occur to a top-level VDEV before
a checksum verify is run before the contents of the I/O buffer
        are committed to disk. In the event of a checksum verification
failure the write will return EIO. The number of O_DIRECT write
checksum verification errors can be observed by doing
`zpool status -d`, which will list all verification errors that
have occurred on a top-level VDEV. Along with `zpool status`, a
ZED event will be issues as `dio_verify` when a checksum
verification error occurs.

ZVOLs and dedup is not currently supported with Direct I/O.

A new dataset property `direct` has been added with the following 3
allowable values:
disabled - Accepts O_DIRECT flag, but silently ignores it and treats
   the request as a buffered IO request.
standard - Follows the alignment restrictions  outlined above for
   write/read IO requests when the O_DIRECT flag is used.
always   - Treats every write/read IO request as though it passed
           O_DIRECT and will do O_DIRECT if the alignment restrictions
   are met otherwise will redirect through the ARC. This
   property will not allow a request to fail.

There is also a module parameter zfs_dio_enabled that can be used to
force all reads and writes through the ARC. By setting this module
parameter to 0, it mimics as if the  direct dataset property is set to
disabled.

Reviewed-by: Brian Behlendorf <behlendorf@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Co-authored-by: Mark Maybee <mark.maybee@delphix.com>
Co-authored-by: Matt Macy <mmacy@FreeBSD.org>
Co-authored-by: Brian Behlendorf <behlendorf@llnl.gov>
Closes #10018

2 months agoRemove set but not used variable in ddt.c (#16522)
Tino Reichardt [Tue, 10 Sep 2024 19:46:50 +0000 (21:46 +0200)]
Remove set but not used variable in ddt.c (#16522)

module/zfs/ddt.c:2612:6: error: variable 'total' set but not used

Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2 months agoFix an uninitialized data access (#16511)
Alan Somers [Tue, 10 Sep 2024 16:08:45 +0000 (10:08 -0600)]
Fix an uninitialized data access (#16511)

zfs_acl_node_alloc allocates an uninitialized data buffer, but upstack
zfs_acl_chmod only partially initializes it.  KMSAN reported that this
memory remained uninitialized at the point when it was read by
lzjb_compress, which suggests a possible kernel memory disclosure bug.

The full KMSAN warning may be found in the PR.
https://github.com/openzfs/zfs/pull/16511

Signed-off-by: Alan Somers <asomers@gmail.com>
Sponsored by: Axcient
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2 months agozts-report: don't crash on non-UTF-8 chars in the log (#16497)
Rob Norris [Tue, 10 Sep 2024 00:49:14 +0000 (10:49 +1000)]
zts-report: don't crash on non-UTF-8 chars in the log (#16497)

The report generator expects the log to be clean and tidy UTF-8. That
can be a problem if you use some of the verbose/debug test runner
options, which sends all sorts of weird output from arbitrary programs
to the log.

This just makes Python a little more relaxed about such things. It
shouldn't matter in practice, as those lines didn't match the test
result regex anyway, and are discarded immediately.

Sponsored-by: https://despairlabs.com/sponsor/
Signed-off-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2 months agosys/types32.h: Remove struct timeval32 from libspl's header (#16491)
Jessica Clarke [Tue, 10 Sep 2024 00:37:12 +0000 (01:37 +0100)]
sys/types32.h: Remove struct timeval32 from libspl's header (#16491)

macOS Sequoia's sys/sockio.h, as included by various bootstrap tools
whilst building FreeBSD, has started to include net/if.h, which then
includes sys/_types/_timeval32.h and provide a conflicting definition
for struct timeval32. Since this type is entirely unused within OpenZFS,
simply delete the type rather than adding in some kind of OS detection.

This fixes building FreeBSD on macOS Sequoia (Beta).

Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2 months agozio_resume: log when unsuspending the pool (#16485)
Rob Norris [Tue, 10 Sep 2024 00:21:20 +0000 (10:21 +1000)]
zio_resume: log when unsuspending the pool (#16485)

When reviewing logs after a failure, its useful to see where
unsuspend/resume was requested.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2 months agolibzstd: also build with LIBZPOOL_CPPFLAGS
Rob Norris [Mon, 9 Sep 2024 21:13:27 +0000 (07:13 +1000)]
libzstd: also build with LIBZPOOL_CPPFLAGS

libzstd now also allocates its own abd_t, and so has the same issue as
zstream did, so this applies the same workaround: compile it with
ZFS_DEBUG. See 92fca1c2d.

This looks weird, because libzstd doesn't appear to look related to the
ZFS kernel, but there is already a cross-dependency there: zstd needs
zfs_lz4_compress, and zfs needs zfs_zstd_compress (and others), so the
two can never really be separated without more work. Another job for
another time.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mark Maybee <mmaybee@delphix.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16489

2 months agospa_prop_get: require caller to supply output nvlist
Rob Norris [Fri, 6 Sep 2024 15:45:58 +0000 (01:45 +1000)]
spa_prop_get: require caller to supply output nvlist

All callers to spa_prop_get() and spa_prop_get_nvlist() supplied their
own preallocated nvlist (except ztest), so we can remove the option to
have them allocate one if none is supplied.

This sidesteps a bug in spa_prop_get(), where the error var wasn't
initialised, which could lead to the provided nvlist being freed at the
end.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16505

2 months agozpool events: expand value strings for ZIO error values
Rob Norris [Thu, 29 Feb 2024 04:00:25 +0000 (15:00 +1100)]
zpool events: expand value strings for ZIO error values

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
2 months agovalue strings: pretty printers for flags and enums
Rob Norris [Thu, 29 Feb 2024 00:25:24 +0000 (11:25 +1100)]
value strings: pretty printers for flags and enums

This adds zfs_valstr, a collection of pretty printers for bitfields and
enums. These are useful in debugging, logging and other display contexts
where raw values are difficult for the untrained (or even trained!) eye
to decipher.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
2 months agoAdd DDT prune command
Don Brady [Mon, 17 Jun 2024 22:35:18 +0000 (22:35 +0000)]
Add DDT prune command

Requires the new 'flat' physical data which has the start
time for a class entry.

The amount to prune can be based on a target percentage of
the unique entries or based on the age (i.e., every entry
older than N days).

Sponsored-by: Klara, Inc.
Sponsored-by: iXsystems, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <don.brady@klarasystems.com>
Closes #16277

2 months agozdb: rework dedup accounting for log, quota and prune
Rob Norris [Tue, 18 Jun 2024 04:11:11 +0000 (14:11 +1000)]
zdb: rework dedup accounting for log, quota and prune

The simplest thing first: add the FDT and log objects to the list of
objects to be considered when checking for leaks.

The rest is based on a conceptual change in all of this patch stack: a
block on disk with a 'D' bit is not necessarily in the DDT at all
(pruned), or in the DDT ZAPs (still on the log).

As such, walking the DDT up front is difficult (for all the reasons that
walking an unflushed log is difficult) and not really useful, since it's
not a reflection of what's on disk anyway.

Instead, we rework things here to be more like the BRT checks. When we
see a dedup'd block, we look it up in the DDT, consume a refcount, and
for the second-or-later instances, count them as duplicates.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Allan Jude <allan@klarasystems.com>
Co-authored-by: Don Brady <don.brady@klarasystems.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: iXsystems, Inc.
Closes #16277

2 months agoRemove unused sysctl node
Seth Hoffert [Wed, 4 Sep 2024 00:52:33 +0000 (19:52 -0500)]
Remove unused sysctl node

PR #14953 removed vdev-level read cache but accidentally left this
sysctl node behind.

Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Seth Hoffert <seth.hoffert@gmail.com>
Closes #16493

2 months agobuild: rename FORCEDEBUG_CPPFLAGS to LIBZPOOL_CPPFLAGS
Rob Norris [Mon, 26 Aug 2024 23:44:53 +0000 (09:44 +1000)]
build: rename FORCEDEBUG_CPPFLAGS to LIBZPOOL_CPPFLAGS

This is just a very small attempt to make it more obvious that these
flags aren't optional for libzpool-using programs, by not making it seem
like there's an option to say "well, I don't _want_ to force debugging".

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Issue #16476
Closes #16477

2 months agozstream: build with debug to fix stack overruns
Rob Norris [Mon, 26 Aug 2024 06:24:59 +0000 (16:24 +1000)]
zstream: build with debug to fix stack overruns

abd_t differs in size depending on whether or not ZFS_DEBUG is set. It
turns out that libzpool is built with FORCEDEBUG_CPPFLAGS, which sets
-DZFS_DEBUG, and so it always has a larger abd_t with extra debug
fields, regardless of whether or not --enable-debug is set.

zdb, ztest and zhack are also all built with FORCEDEBUG_CPPFLAGS, so had
the same idea of the size of abd_t, but zstream was not, and used the
"smaller" abd_t. In practice this didn't matter because it never used
abd_t directly.

This changed in b4d81b1a6, zstream was switched to use stack ABDs for
compression. When built with --enable-debug, zstream implicitly gets
ZFS_DEBUG, and everything was fine. Productions builds without that flag
ends up with the smaller abd_t, which is now mismatched with libzpool,
and causes stack overruns in zstream recompress.

The simplest fix for now is to compile zstream with FORCEDEBUG_CPPFLAGS
like the other binaries. This commit does that.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Issue #16476
Closes #16477

2 months agofm: pass io_flags through events & zed as uint64_t
Rob Norris [Tue, 27 Aug 2024 00:39:13 +0000 (10:39 +1000)]
fm: pass io_flags through events & zed as uint64_t

In 4938d01db (#14086) zio_flag_t was converted from an enum (generally
signed 32-bit) to a uint64_t. The corresponding change wasn't made to
the error reporting subsystem, limiting the error flags being delivered
to zed to 32 bits. This bumps the whole pipeline to use uint64s.

A tiny bit of compatibility is added for newer zed working agsinst an
older kernel module, because its easy to do and misdetecting
scrub/resilver errors and taking action is potentially dangerous. Making
it work for new kernel modules against older zed seems to be far more
invasive for far less benefit, so I have not.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16469

2 months agoFix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP
Jitendra Patidar [Tue, 27 Aug 2024 00:36:49 +0000 (06:06 +0530)]
Fix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP

When process got SIGSTOP/SIGTSTP, issig() dequeue them and return 0.
But process could still have another signal pending after dequeue. So,
after dequeue, check and return 1, if signal_pending.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jitendra Patidar <jitendra.patidar@nutanix.com>
Closes #16464

2 months agozpool: Provide GUID to zpool-reguid(8) with -g (#16239)
Mateusz Piotrowski [Mon, 26 Aug 2024 16:27:24 +0000 (18:27 +0200)]
zpool: Provide GUID to zpool-reguid(8) with -g (#16239)

This commit extends the zpool-reguid(8) command with a -g flag, which
allows the user to specify the GUID to set.

This change also adds some general tests for zpool-reguid(8).

Sponsored-by: Wasabi Technology, Inc.
Sponsored-by: Klara, Inc.
Signed-off-by: Mateusz Piotrowski <0mp@FreeBSD.org>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2 months agospl-taskq: fix task counts for delayed and cancelled tasks
Rob Norris [Fri, 23 Aug 2024 17:40:45 +0000 (03:40 +1000)]
spl-taskq: fix task counts for delayed and cancelled tasks

Dispatched delayed tasks were not added to tasks_total, and cancelled
tasks were not removed. This notably could make tasks_total go to
UNIT64_MAX, but just generally meant the count could be wrong. So lets
not!

Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16473