OpenZFS/src dee19fainclude/os/linux/zfs/sys zfs_vnops_os.h, module/os/linux/zfs zfs_vnops_os.c zpl_inode.c

Linux: add idmap versions of verious znode operations

Calls from the core to znode operations (primarily in zfs_replay) are
always with zfs_init_idmap, so make the "generic" interface wrap the
idmap version, setting that as the namespace internally.

This lets us supply a uniform interface znode interface to the core for
all platforms.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18736
DeltaFile
+47-6module/os/linux/zfs/zfs_vnops_os.c
+0-38module/zfs/zfs_replay.c
+23-10include/os/linux/zfs/sys/zfs_vnops_os.h
+11-10module/os/linux/zfs/zpl_inode.c
+3-3module/os/linux/zfs/zpl_file.c
+1-1module/os/linux/zfs/zpl_xattr.c
+85-686 files

OpenZFS/src 3814d2binclude/os/linux/zfs/sys zfs_acl_impl.h, include/sys zfs_acl.h

Linux: add idmap versions of zfs_zaccess and zfs_zaccess_rwx

The calls from the core to zfs_zaccess() and zfs_zaccess_rwx() are
always with zfs_init_idmap, so we can make that the "generic" interface
by having those call extended internal versions that take an idmap arg.

Existing uses in the Linux platform code that use zfs_init_idmap just
remove that arg, while others that pass down an idmap parameter use the
_idmap() variants.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18736
DeltaFile
+22-22module/os/linux/zfs/zfs_vnops_os.c
+25-13module/os/linux/zfs/zfs_acl.c
+0-9module/zfs/zfs_vnops.c
+0-6include/sys/zfs_acl.h
+3-0include/os/linux/zfs/sys/zfs_acl_impl.h
+1-2module/os/linux/zfs/zfs_dir.c
+51-526 files

OpenZFS/src cde3434include/os/freebsd/zfs/sys zfs_vnops_os.h zfs_acl_impl.h, module/os/freebsd/zfs zfs_vnops_os.c zfs_acl.c

FreeBSD: remove zidmap_t and mnt_ns

These are not present and never used on FreeBSD, and never leave the
platform either, so are literal no-ops.

To keep the build working, zfs_zaccess() and zfs_zaccess_rwx() get
different prototypes on Linux. These will be dealt with in the next
commit.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18736
DeltaFile
+29-36module/os/freebsd/zfs/zfs_vnops_os.c
+14-17module/os/freebsd/zfs/zfs_acl.c
+8-7module/zfs/zfs_replay.c
+5-8include/os/freebsd/zfs/sys/zfs_vnops_os.h
+3-3include/os/freebsd/zfs/sys/zfs_acl_impl.h
+2-3module/zfs/zfs_vnops.c
+61-744 files not shown
+70-8010 files

OpenZFS/src 8d90fbbinclude/os/freebsd/zfs/sys zfs_acl_impl.h zfs_znode_impl.h, include/os/linux/zfs/sys zfs_acl_impl.h

zfs_acl: split header into core and platform-specific variants

The common set of function names in the same "core" header makes it look
like these are all needed for all platforms, but really only a small
handful of functions are used by core code. Separating them makes that
much easier to see.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18736
DeltaFile
+59-0include/os/freebsd/zfs/sys/zfs_acl_impl.h
+59-0include/os/linux/zfs/sys/zfs_acl_impl.h
+9-21include/sys/zfs_acl.h
+1-1module/os/linux/zfs/zfs_znode_os.c
+1-1include/os/freebsd/zfs/sys/zfs_znode_impl.h
+1-1module/os/freebsd/spl/spl_acl.c
+130-248 files not shown
+138-3014 files

OpenZFS/src 5aec3deinclude/sys zfs_acl.h, module/os/freebsd/zfs zfs_acl.c

zfs_acl: remove zfs_has_access

Last use on the Linux side was removed in 3558fd73b5 (2011). Briefly
returned when FreeBSD came home in 9f0a21e641 (2020), but that use was
removed again in 3f400b0f58 (2022).

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18736
DeltaFile
+0-20module/os/linux/zfs/zfs_acl.c
+0-18module/os/freebsd/zfs/zfs_acl.c
+0-1include/sys/zfs_acl.h
+0-393 files

OpenZFS/src 7af650finclude/sys zfs_acl.h

zfs_acl: remove obsolete function prototypes

As far as I can tell these have existed without an impementation since
the earliest Sun ZFS releases.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18736
DeltaFile
+0-3include/sys/zfs_acl.h
+0-31 files

OpenZFS/src 54828b3module/zfs zfs_vnops.c

Linux: fix zfs_write() infinite loop on unfaultable buffer

On Linux, zfs_write() copies from the source buffer with page faults
disabled while the transaction is open, relying on
zfs_uio_prefaultpages() to make the pages resident beforehand.  When
dmu_write_uio_dbuf() returns EFAULT, the retry path only subtracts
the bytes consumed so far from the prefault accounting.  On zero
progress pfbytes does not change, the "pfbytes < nbytes" check never
triggers another prefault, and the loop retries the same failing
copy.  If the buffer can never be faulted in again, e.g. the owning
process was torn down while a thread was in pwrite(2), that thread
spins unkillably at 100% CPU holding the file range lock, blocking
every other accessor of the file.

This is a regression from commit b0cbc1aa9a ("Use big transactions
for small recordsize writes."), which dropped the unconditional
re-prefault the EFAULT path had carried since commit 779a6c0bf6
("deadlock between mm_sem and tx assign in zfs_write() and page
fault").  Restore those semantics by resetting pfbytes on EFAULT, as

    [15 lines not shown]
DeltaFile
+9-1module/zfs/zfs_vnops.c
+9-11 files

OpenZFS/src b8a409amodule Makefile.in

build: Fix for building dist target outside of project root

Do not change the working directory when doing copying because $distdir
is a path relative to the working directory, and thus not valid after
changing the working directory. This previously worked, when configure
was run from the project root, because @srcdir@ was the same as the
build working directory.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Glenn Washburn <development at efficientek.com>
Closes #18744
DeltaFile
+2-1module/Makefile.in
+2-11 files

OpenZFS/src cbf7db5tests/unit test_fletcher.c Makefile.am

unit/fletcher: test fletcher-2 and fletcher-4 checksums

Cover known answers, incremental vs single-call agreement, varsize,
byteswap, and cross-implementation equality.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Christos Longros <chris.longros at gmail.com>
Closes #18747
DeltaFile
+253-0tests/unit/test_fletcher.c
+21-1tests/unit/Makefile.am
+1-0tests/unit/.gitignore
+275-13 files

OpenZFS/src cc21086tests/zfs-tests/cmd ctime.c

ZTS: ctime_001_pos increase tolerance

The ctime_001_pos test checks that timestamp updates occur for a
file after performing certain operations (read, write, chown, etc).
The test case allowed for a +4 second tolerance in the timestamp
value which is generous but up to +7 second discrepencies have been
seen in the CI.  Bump the tolerance to +10 seconds to prevent these
false positives.  As long as the value increases and is reasonably
close to the expected value consider that to be sufficient.

Reviewed-by: Christos Longros <chris.longros at gmail.com>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Closes #18733
DeltaFile
+1-1tests/zfs-tests/cmd/ctime.c
+1-11 files

OpenZFS/src d902eecconfig zfs-build.m4, include/sys metaslab.h zio.h

Disconnect metaslab tracing from default builds

This code can not even be enabled without patching and has no use
without some external tools.  32 additional bytes in zio_t plus
their initialization/destruction is too high cost for rarely used
development tool.

Making it conditional under METASLAB_TRACE define reduces zio_t
on FreeBSD by 64 bytes due to stucture alignment and removed the
initialization from CPU profiles.

Reviewed-by: Paul Dagnelie <paul.dagnelie at klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18714
DeltaFile
+28-8module/zfs/metaslab.c
+15-0config/zfs-build.m4
+5-5module/zfs/zio.c
+10-0include/sys/metaslab.h
+10-0include/sys/zio.h
+2-0include/sys/metaslab_impl.h
+70-131 files not shown
+71-137 files

OpenZFS/src e78fa48cmd/zstream zstream_queue.c zstream_chain.c

zstream: multithreading

This PR extends the `zstream_chain` mechanism introduced in #18509 to
include support for multithreading. It makes three main changes.

- It adds `zstream_queue.[ch]`, a generic FIFO queue with multiple
  worker threads. This is a freestanding construct not directly tied to
  ZFS or to the `zstream_chain` mechanism.

- It adapts `zstream_chain.[ch]` to allow both single-threaded and
  multithreaded steps.

- It converts `zstream_fletcher4.[ch]` and `zstream_recompress.[ch]`
  to use multithreading.

### Motivation

This patch significantly speeds recompression on modern CPUs. The
ultimate goal is to add a `zstream dedup` or `zstream pack` subcommand

    [92 lines not shown]
DeltaFile
+817-0cmd/zstream/zstream_queue.c
+245-62cmd/zstream/zstream_chain.c
+224-70cmd/zstream/zstream_fletcher4.c
+105-41cmd/zstream/zstream_recompress.c
+138-0cmd/zstream/zstream_queue.h
+48-23cmd/zstream/zstream_chain.h
+1,577-19614 files not shown
+1,717-24120 files

OpenZFS/src 822c910tests/zfs-tests/tests/functional/cli_root/zfs_unmount zfs_unmount_unload_keys.ksh

ZTS: cover key unload when a child's mountpoint sorts before its root

zfs_unmount_unload_keys.ksh only exercised hierarchy-aligned
mountpoints. The changelist unmounts in reverse alphabetical order of
mountpoint, so a nested child always sorted after and unmounted before
its encryption root, and the case where the root unmounts first was
never covered. Add a case whose child mountpoint sorts before its
root's, so the root is unmounted while the child still holds the
inherited key, and assert "zfs unmount -u" still unloads the key and
unmounts the whole subtree.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Ameer Hamza <ahamza at ixsystems.com>
Closes #18713
DeltaFile
+15-0tests/zfs-tests/tests/functional/cli_root/zfs_unmount/zfs_unmount_unload_keys.ksh
+15-01 files

OpenZFS/src 7cc1d90lib/libzfs libzfs_changelist.c

libzfs: defer encryption key unload until the subtree is unmounted

"zfs unmount -u" unloads a dataset's encryption key right after
unmounting it. changelist_prefix() unmounts the subtree in mountpoint
order and passes MS_CRYPT to zfs_unmount() for every node, so each key
is unloaded inline during the walk. A wrapping key is shared by an
encryption root and the children that inherit it, and can only be
unloaded once all of them are unmounted. Because the walk is ordered by
mountpoint rather than by hierarchy, an encryption root can be unmounted
before a child that still holds its key; unloading the key there fails
with EBUSY, aborting the unmount. This breaks "zfs unmount -u <encroot>"
whenever a key-sharing child is still mounted.

Strip MS_CRYPT in the unmount pass so no key is unloaded inline and the
whole subtree is torn down first. With everything unmounted, unload the
encryption-root keys in a second pass, stopping at the first failure.
If an unload fails because a dataset using the key is genuinely in use
(for example a bind or second mount), re-mount the subtree to undo the
unmount before returning the error. With one encryption root, the

    [5 lines not shown]
DeltaFile
+69-1lib/libzfs/libzfs_changelist.c
+69-11 files

OpenZFS/src 69b2491cmd/zfs zfs_main.c, lib/libspl/include/os/freebsd/sys mount.h

libzfs: fix MS_CRYPT/MS_OVERLAY collision with umount2(2) flags

MS_CRYPT and MS_OVERLAY are libzfs-internal mount flags, but their
values (0x8 and 0x4) aliased the umount2(2) flags UMOUNT_NOFOLLOW and
MNT_EXPIRE. A consumer that legitimately set UMOUNT_NOFOLLOW therefore
had that bit read as MS_CRYPT, so libzfs unloaded the dataset's
encryption key as a side effect.

Move both flags to high bits unused by umount2(2) and strip them before
the unmount syscall in do_unmount() (umount2(2) on Linux, unmount(2) on
FreeBSD) and in cmd/zfs. MS_CRYPT is a compile-time macro, so consumers
that set it (for example truenas_pylibzfs) must be rebuilt against the
new header.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Ameer Hamza <ahamza at ixsystems.com>
Closes #18713
DeltaFile
+7-11lib/libspl/include/os/linux/sys/mount.h
+6-11lib/libspl/include/os/freebsd/sys/mount.h
+7-0lib/libzfs/os/freebsd/libzfs_zmount.c
+7-0lib/libzfs/os/linux/libzfs_mount_os.c
+2-0cmd/zfs/zfs_main.c
+29-225 files

OpenZFS/src 37f066einclude/os/freebsd/spl/sys simd_x86.h, module Makefile.bsd

FreeBSD: Wire sha512 offload to the build

FreeBSD main just got the CPUID_STDEXT4_SHA512 define.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Rob Norris <rob.norris at truenas.com>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18732
DeltaFile
+14-0include/os/freebsd/spl/sys/simd_x86.h
+1-1module/Makefile.bsd
+15-12 files

OpenZFS/src 1ff51ebtests/zfs-tests/tests/functional/l2arc l2arc_multidev_throughput_pos.ksh

ZTS: l2arc_multidev_throughput_pos relax throughput window

Occasionally in the CI this test will fail because the throughput for
one of the windows drops slightly below 50%.  This is likely due to
running in the virtualized CI environment.  Drop the performance cutoff
from 50% to 40% to try and reduce the number of false positives.

Reviewed-by: Ameer Hamza <ahamza at ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Closes #18727
DeltaFile
+4-4tests/zfs-tests/tests/functional/l2arc/l2arc_multidev_throughput_pos.ksh
+4-41 files

OpenZFS/src 027940emodule/zfs zio.c

zbookmark_compare: handle "marker" bookmarks with negative levels

"Marker" bookmarks (those with zb_level == ZB_ROOT_LEVEL, ZB_ZIL_LEVEL
or ZB_DNODE_LEVEL) represent valid blocks, but are associated with a
dataset directly rather than with a specific object within it. They end
up on bookmark lists during scan prefetch, and so need to be sorted
ahead of any "true" object blocks.

The problem is that for negative levels, BP_SPANB produces a negative
shift, which is not legal C. Fortunately the results are used only for
comparison, so the worst possible behaviour in a forgiving compilation
environment is a mis-sort, which for the scan/traverse cases, means that
we haven't prefetched certain metadata before we actually need it. But
there _is_ UB in there, and UBSAN does rightly complain.

Here we fix all this by handling these bookmarks directly - sorting them
ahead of "true" object blocks, which is usually what scan/traverse will
prefer. And we don't do any interesting math on these bookmarks, so we
sidestep the whole UB thing.

    [6 lines not shown]
DeltaFile
+61-0module/zfs/zio.c
+61-01 files

OpenZFS/src 6721ab9include/sys zio.h, man/man4 zfs.4

Calling thread IO

Adds a module parameter that will allow waiting for bio's
to complete, along with a flag that tracks whether a zio
has bypassed the queue.

The motivation behind this change was performance based. The
intention was to reduce overhead caused by swapping between
threads from when bio's are submitted, and the callback executes.

Currently, only zio's who have bypassed the queue are allowed
to wait for bio completion, this is mainly done because any performance
uplift from staying in the same thread is overshadowed by the vdev
queue lock.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Migel Imeri <mimeri at lanl.gov>
Closes #18562
DeltaFile
+48-5module/os/linux/zfs/vdev_disk.c
+15-14include/sys/zio.h
+16-13man/man8/zpool-events.8
+10-0man/man4/zfs.4
+1-0module/zfs/vdev_queue.c
+90-325 files

OpenZFS/src f607ef7module/zfs zio.c

Fix insufficient locking in dedup verify

Introduction of dde_io_lock removed global DDT lock acquisition
from write completion.  As result, white ZIO ABD could be freed
while zio_ddt_collision() is comparing against it.  Taking there
dde_io_lock should fix the issue.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #17960
Closes #18712
Closes #18720
DeltaFile
+18-8module/zfs/zio.c
+18-81 files

OpenZFS/src 604805cmodule/os/linux/zfs zpl_ctldir.c

zpl_ctldir: remove comments describing ancient kernel behaviour

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+4-12module/os/linux/zfs/zpl_ctldir.c
+4-121 files

OpenZFS/src 96caec8module/os/linux/zfs zpl_ctldir.c zfs_ctldir.c

zfs_ctldir: move the invalid dentry check up to zpl_snapdir_automount()

If the dentry is invalid, don't even bother calling
zfsctl_snapshot_mount(). There's no practical change here, but it just
helps keep the notion of "invalidated dentry" in the binding.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+7-0module/os/linux/zfs/zpl_ctldir.c
+1-2module/os/linux/zfs/zfs_ctldir.c
+8-22 files

OpenZFS/src 85268c3include/os/linux/zfs/sys zfs_ctldir.h, module/os/linux/zfs zfs_ctldir.c zpl_ctldir.c

zfs_ctldir: remove flags arg to zfsctl_snapshot_mount()

Always set to 0, and never read anyway.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+1-1include/os/linux/zfs/sys/zfs_ctldir.h
+1-1module/os/linux/zfs/zfs_ctldir.c
+1-1module/os/linux/zfs/zpl_ctldir.c
+3-33 files

OpenZFS/src 3d50e1einclude/os/freebsd/zfs/sys zfs_ctldir.h, include/os/linux/zfs/sys zfs_ctldir.h

zfs_ctldir: remove flags arg to zfsctl_snapshot_unmount()

On FreeBSD, its ignored. On Linux, it's set to either MNT_EXPIRE or
MNT_FORCE, with MNT_FORCE adding the -f switch to the userspace
unmount(8) call. However, MNT_FORCE to umount(2) simply causes an early
call into sb->umount_begin() early in the unmount process, which we do
not implement. Therefore, it is effectively a no-op, and we can remove
it.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+3-5module/os/linux/zfs/zfs_ctldir.c
+1-1module/os/freebsd/zfs/zfs_ctldir.c
+1-1include/os/freebsd/zfs/sys/zfs_ctldir.h
+1-1include/os/linux/zfs/sys/zfs_ctldir.h
+1-1module/zfs/zfs_ioctl.c
+7-95 files

OpenZFS/src 8cffd87include/os/linux/zfs/sys zfs_ctldir.h, module/os/linux/zfs zfs_ctldir.c zfs_vfsops.c

zfs_ctldir: remove delay param for zfsctl_snapshot_unmount_delay()

It's always set to the zfs_expire_snapshot tunable and never changed.
There's no need to thread it through.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+9-8module/os/linux/zfs/zfs_ctldir.c
+1-2include/os/linux/zfs/sys/zfs_ctldir.h
+1-1module/os/linux/zfs/zfs_vfsops.c
+11-113 files

OpenZFS/src 7d9c1b3module/os/linux/zfs zfs_ctldir.c zfs_vfsops.c

zfs_ctldir: use dmu_objset_spa() to get spa pointer

Just for slightly easier readability against dmu_objset_id(), which is
often right near it.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+4-3module/os/linux/zfs/zfs_ctldir.c
+2-3module/os/linux/zfs/zfs_vfsops.c
+6-62 files

OpenZFS/src 42cbaafmodule/os/linux/zfs zfs_ctldir.c

zfs_ctldir: remove unused args to zfsctl_snapshot_alloc()

Since 4ce030e025 (2025) these have always been null/zero, which those
fields already are, so there's no need for them.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+2-5module/os/linux/zfs/zfs_ctldir.c
+2-51 files

OpenZFS/src ecab6ddmodule/os/linux/zfs zfs_ctldir.c

zfs_ctldir: remove se_root_dentry

Unused field since 9b77d1c958 (2017).

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18722
DeltaFile
+4-8module/os/linux/zfs/zfs_ctldir.c
+4-81 files

OpenZFS/src 54c7b32tests/runfiles linux.run, tests/zfs-tests/tests Makefile.am

ZTS: snapdir: ensure mounts only occur when accessing beyond the snapdir

On Linux, automount only occurs for paths that are "beyond" the snapdir.
Accessing the snapdir itself eg with `stat()` does not itself trigger
the automount. Confirm that this is the case.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Ameer Hamza <ahamza at ixsystems.com>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18705
DeltaFile
+57-0tests/zfs-tests/tests/functional/snapdir/snapdir_stat_no_mount.ksh
+2-1tests/runfiles/linux.run
+1-0tests/zfs-tests/tests/Makefile.am
+60-13 files

OpenZFS/src 7fe8f8btests/runfiles linux.run, tests/zfs-tests/include tunables.cfg

ZTS: snapdir: ensure the SNAPSHOT_NO_SUID tunable performs correctly

When set, zfs_snapshot_no_setuid will add the nosuid option to new
snapdir mounts, preventing setuid executables from being run as a
different user.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Ameer Hamza <ahamza at ixsystems.com>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18705
DeltaFile
+62-0tests/zfs-tests/tests/functional/snapdir/snapdir_mount_no_setuid.ksh
+1-1tests/runfiles/linux.run
+1-0tests/zfs-tests/include/tunables.cfg
+1-0tests/zfs-tests/tests/Makefile.am
+65-14 files