Allan Jude
dc95911d21
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.
This was committed before (9a9e2e343dfa2af28bf7910de77ae73aa006de62),
but was reverted due to a regression when used with an older kernel.
If the kernel does not populate zc->zc_objset_stats, we now fallback
to getting the properties via the slower interface, to avoid problems
with newer userland and older kernels.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov >
Signed-off-by: Allan Jude <allan@klarasystems.com >
Closes #14110
2022-12-13 17:27:54 -08:00
..
2022-10-19 17:11:01 -07:00
2022-03-15 15:13:42 -07:00
2022-11-11 10:41:36 -08:00
2022-06-21 14:32:09 -07:00
2022-03-15 15:13:42 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-09-16 13:52:25 -07:00
2022-10-20 11:57:15 -07:00
2022-10-29 13:05:11 -07:00
2022-09-22 12:59:41 -07:00
2022-11-29 10:00:50 -08:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-09-27 16:42:41 -07:00
2022-10-27 09:54:54 -07:00
2022-11-03 09:55:13 -07:00
2022-09-15 16:21:21 -07:00
2022-12-08 14:15:21 -08:00
2022-10-27 09:54:54 -07:00
2022-07-11 14:16:13 -07:00
2022-10-13 10:03:29 -07:00
2022-10-27 09:54:54 -07:00
2022-07-11 14:16:13 -07:00
2022-11-29 09:49:02 -08:00
2022-10-14 13:37:54 -07:00
2022-11-15 14:44:12 -08:00
2022-12-08 13:52:42 -08:00
2022-10-13 10:03:29 -07:00
2022-07-11 14:16:13 -07:00
2022-08-22 12:36:22 -07:00
2022-11-10 13:56:28 -08:00
2022-10-14 13:37:54 -07:00
2022-11-08 10:16:01 -08:00
2022-10-13 10:03:29 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-03-15 15:13:42 -07:00
2022-10-18 15:34:36 -07:00
2022-07-11 14:16:13 -07:00
2022-03-15 15:13:42 -07:00
2022-01-07 10:36:49 -08:00
2022-01-12 16:14:36 -08:00
2022-07-11 14:16:13 -07:00
2022-12-09 10:48:33 -08:00
2022-10-14 13:37:54 -07:00
2022-09-27 16:42:41 -07:00
2019-06-19 09:48:12 -07:00
2022-07-11 14:16:13 -07:00
2022-10-12 11:25:18 -07:00
2022-09-27 16:42:41 -07:00
2022-07-11 14:16:13 -07:00
2022-09-30 15:34:39 -07:00
2022-07-11 14:16:13 -07:00
2022-03-15 15:13:42 -07:00
2022-10-13 10:03:29 -07:00
2022-09-28 09:48:46 -07:00
2022-09-27 16:42:41 -07:00
2022-07-11 14:16:13 -07:00
2022-11-03 09:58:14 -07:00
2022-11-18 11:39:59 -08:00
2022-09-27 16:42:41 -07:00
2022-11-04 11:33:47 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2018-06-06 09:35:59 -07:00
2018-06-06 09:35:59 -07:00
2022-11-29 09:56:16 -08:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-09-27 16:42:41 -07:00
2020-11-13 13:51:51 -08:00
2022-09-12 12:51:17 -07:00
2022-03-15 15:13:42 -07:00
2022-03-15 15:13:42 -07:00
2022-12-02 17:42:22 -08:00
2022-10-13 10:03:29 -07:00
2022-07-11 14:16:13 -07:00
2022-09-08 10:30:53 -07:00
2022-07-11 14:16:13 -07:00
2022-10-27 09:54:54 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-11-30 13:46:26 -08:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-09-06 09:43:21 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-11-28 13:49:58 -08:00
2022-12-02 17:42:22 -08:00
2022-10-19 15:48:13 -07:00
2022-12-09 10:48:33 -08:00
2022-07-11 14:16:13 -07:00
2022-10-28 10:16:31 -07:00
2022-11-29 09:24:10 -08:00
2022-10-20 11:57:15 -07:00
2022-10-20 11:57:15 -07:00
2022-07-11 14:16:13 -07:00
2022-10-14 13:37:54 -07:00
2018-02-08 15:29:24 -08:00
2022-01-14 15:37:55 -08:00
2020-02-14 13:41:42 -08:00
2022-09-02 13:31:19 -07:00
2022-10-29 13:04:52 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-10-29 13:05:11 -07:00
2022-11-03 10:17:17 -07:00
2022-07-11 14:16:13 -07:00
2022-12-13 17:27:54 -08:00
2022-10-28 09:49:20 -07:00
2022-11-03 09:52:12 -07:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-11-08 10:28:56 -08:00
2022-07-11 14:16:13 -07:00
2022-07-11 14:16:13 -07:00
2022-11-08 10:28:56 -08:00
2022-11-08 12:38:08 -08:00
2022-09-30 15:34:39 -07:00
2022-10-18 11:05:32 -07:00
2022-09-27 16:35:29 -07:00
2022-12-02 17:46:29 -08:00
2022-07-11 14:16:13 -07:00
2022-11-29 09:26:03 -08:00
2022-03-23 08:51:00 -07:00
2022-10-28 09:49:20 -07:00