zfs/lib
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
..
libavl lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libefi lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libicp cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libnvpair Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
libshare libshare: nfs: pass through ipv6 addresses in bracket notation 2021-10-20 10:40:00 -07:00
libspl linux: libspl: getmntany: remove unused argument 2021-12-13 15:49:59 -08:00
libtpool lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
libzfs zfs list: Allow more fields in ZFS_ITER_SIMPLE mode 2021-12-16 02:15:06 +00:00
libzfs_core Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
libzfsbootenv Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
libzpool Code cleanups 2021-11-30 10:32:38 -08:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil Add `const` to nvlist functions to properly expose their real behavior 2021-12-06 18:19:13 -07:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00