HomeFreeBSD

Add createtxg sort support for simple snapshot iterator

Description

Add createtxg sort support for simple snapshot iterator

  • When iterating snapshots with name only, e.g., "-o name -s name",

libzfs uses simple snapshot iterator and results are displayed
in alphabetic order. This PR adds support for faster version of
createtxg sort by avoiding nvlist parsing for properties. Flags
"-o name -s createtxg" will enable createtxg sort while using
simple snapshot iterator.

  • Added support to read createtxg property directly from zfs handle

for filesystem, volume and snapshot types instead of parsing nvlist.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #13577

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Jul 25 2022, 9:04 PM
GitHub <noreply@github.com>Committed on Jul 25 2022, 9:04 PM
Parents
rG8792dd24cd95: ZTS: Fix occasional inherit_001_pos.ksh failure
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG3a1ce4914172: Add createtxg sort support for simple snapshot iterator (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Jul 25 2022, 9:04 PM