]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid retrieving unused snapshot props
authorAlek P <alek-p@users.noreply.github.com>
Tue, 12 Mar 2019 20:13:22 +0000 (13:13 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Mar 2019 20:13:22 +0000 (13:13 -0700)
commit4c0883fb4af0d5565459099b98fcf90ecbfa1ca1
tree6f99d61588b8168485f903467b271259d00882ee
parentdd785b5b86bbb7ebbfe1d22668f3dd27c5704994
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
cmd/zfs/zfs_iter.c
cmd/zfs/zfs_main.c
include/libzfs.h
include/sys/fs/zfs.h
lib/libzfs/libzfs_dataset.c
lib/libzfs/libzfs_iter.c
lib/libzfs/libzfs_sendrecv.c
module/zfs/zfs_ioctl.c