HomeFreeBSD

Avoid retrieving unused snapshot props

Description

Avoid retrieving unused snapshot props

This patch modifies the zfs_ioc_snapshot_list_next() ioctl to enable it
to take input parameters that alter the way looping through the list of
snapshots is performed. The idea here is to restrict functions that
throw away some of the snapshots returned by the ioctl to a range of
snapshots that these functions actually use. This improves efficiency
and execution speed for some rollback and send operations.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #8077

Details

Provenance
Alek P <alek-p@users.noreply.github.com>Authored on Mar 12 2019, 8:13 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 12 2019, 8:13 PM
Parents
rGdd785b5b86bb: Fix vdev_initialize_restart / removal race
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG4c0883fb4af0: Avoid retrieving unused snapshot props (authored by Alek P <alek-p@users.noreply.github.com>).Mar 12 2019, 8:13 PM