Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
=> openzfs#2338: hybridcluster/zfs-send-p-fix-71011260 - zfs send -p …
…send properties only for snapshots that are actually sent. zfs send -p send properties only for snapshots that are actually sent ... as opposed to sending properties of all snapshots of the relevant filesystem. The previous behavior results in properties being set on all snapshots on the receiving side, which is quite slow. More details are here: http://thread.gmane.org/gmane.comp.file-systems.openzfs.devel/346 Behavior of zfs send -R is not changed. send_iterate_fs: orderly iterate snapshots The previous commit depends on ordered iteration of the snapshots, otherwise the code won't be able to correctly detect snapshots that fall into the requested snapshot range. This commit can be considered a partial cherry-pick of commit freebsd/freebsd-src@4995789cde5 where ordered iteration was introduced to fix a different problem. We might want to pick up the complete fix eventually.