1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/contrib
Rob N baca06c258
libzfs: add v2 iterator interfaces
f6a0dac84 modified the zfs_iter_* functions to take a new "flags"
parameter, and introduced a variety of flags to ask the kernel to limit
the results in various ways, reducing the amount of work the caller
needed to do to filter out things they didn't need.

Unfortunately this change broke the ABI for existing clients (read:
older versions of the `zfs` program), and was reverted 399b98198.

dc95911d2 reintroduced the original patch, with the understanding that a
backwards-compatible fix would be made before the 2.2 release branch was
tagged. This commit is that fix.

This introduces zfs_iter_*_v2 functions that have the new flags
argument, and reverts the existing functions to not have the flags
parameter, as they were before. The old functions are now reimplemented
in terms of the new, with flags set to 0.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Wilson <george.wilson@delphix.com>
Original-patch-by: George Wilson <george.wilson@delphix.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Closes #14597
2023-04-10 11:53:02 -07:00
..
bash_completion.d Ubuntu 22.04 integration: ShellCheck 2022-11-18 11:24:48 -08:00
bpftrace
coverity Coverity Model Update 2022-11-29 10:00:56 -08:00
debian Fix github build failures because of vdevprops.7 2023-02-28 14:02:48 -08:00
dracut contrib: dracut: fix race with root=zfs:dset when necessities required 2023-03-31 09:47:48 -07:00
initramfs Fix for mountpoint=legacy 2023-03-14 16:40:55 -07:00
intel_qat
pam_zfs_key libzfs: add v2 iterator interfaces 2023-04-10 11:53:02 -07:00
pyzfs Better handling for future crypto parameters 2023-03-07 14:05:14 -08:00
zcp
Makefile.am