zfs/cmd
Allan Jude 9a9e2e343d zfs list: Allow more fields in ZFS_ITER_SIMPLE mode
If the fields to be listed and sorted by is 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.

Signed-off-by: Allan Jude <allan@klarasystems.com>
Sponsored-by: Klara Inc.
2021-12-16 02:15:06 +00:00
..
arc_summary Added another missed case to arc_summary3 2021-06-01 15:20:50 -06:00
arcstat arcstat: Fix integer division with python3 2021-10-08 09:32:27 -06:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:10:35 -08:00
fsck_zfs Turn shellcheck into a normal make target. Fix new files it caught 2021-06-01 11:38:49 -07:00
mount_zfs Use fallthrough macro 2021-09-14 10:17:54 -06:00
raidz_test raidz_test: use only async-signal-safe functions in signal handler 2021-05-20 16:37:38 -07:00
vdev_id Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
zdb Allow printing special vdev metaslab groups 2021-11-30 10:26:45 -08:00
zed Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
zfs zfs list: Allow more fields in ZFS_ITER_SIMPLE mode 2021-12-16 02:15:06 +00:00
zfs_ids_to_path zfs_ids_to_path: print correct wrong values 2021-04-11 11:58:16 -07:00
zgenhostid Prune /*NOTREACHED*/ 2021-07-26 12:07:26 -07:00
zhack zhack: Add repair label option 2021-11-11 11:26:18 -08:00
zinject cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
zpool zfs list: Allow more fields in ZFS_ITER_SIMPLE mode 2021-12-16 02:15:06 +00:00
zpool_influxdb Use fallthrough macro 2021-09-14 10:17:54 -06:00
zstream zstream: force-install zstreamdump link 2021-05-29 20:37:05 -07:00
ztest Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
zvol_id Use substantially more robust program exit status logic in zvol_id 2021-07-02 13:10:36 -07:00
zvol_wait Turn shellcheck into a normal make target. Fix new files it caught 2021-06-01 11:38:49 -07:00
Makefile.am Turn shellcheck into a normal make target. Fix new files it caught 2021-06-01 11:38:49 -07:00