zfs/contrib
Allan Jude f6a0dac84a
zfs list: Allow more fields in ZFS_ITER_SIMPLE mode
If the fields to be listed and sorted by are constrained
to those populated by dsl_dataset_fast_stat(), then
zfs list is much faster, as it does not need to open each
objset and reads its properties.

A previous optimization by Pawel Dawidek
(0cee24064a) took advantage
of this to make listing snapshot names sorted only by name
much faster.

However, it was limited to `-o name -s name`, this work
extends this optimization to work with:
  - name
  - guid
  - createtxg
  - numclones
  - inconsistent
  - redacted
  - origin
and could be further extended to any other properties
supported by dsl_dataset_fast_stat() or similar, that do
not require extra locking or reading from disk.

Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #11080
2021-12-16 11:56:22 -08:00
..
bash_completion.d contrib/bash_completion.d: fix error spew from __zfs_match_snapshot() 2021-12-07 12:30:10 -08:00
bpftrace Pass `--enable=all` to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
dracut Pass `--enable=all` to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
initramfs Pass `--enable=all` to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
intel_qat Add intel_QAT patches 2020-09-30 13:17:30 -07:00
pam_zfs_key zfs list: Allow more fields in ZFS_ITER_SIMPLE mode 2021-12-16 11:56:22 -08:00
pyzfs Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
zcp Fix contrib/zcp/Makefile.am 2019-10-30 12:37:49 -07:00
Makefile.am Pass `--enable=all` to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00