]> git.proxmox.com Git - mirror_zfs.git/commit
zfs_receive_one: Check for the more likely error first
authorAllan Jude <allan@klarasystems.com>
Fri, 20 Jan 2023 19:11:54 +0000 (14:11 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Jan 2023 19:11:54 +0000 (11:11 -0800)
commit63267f7f77b0205bab435822c5df629d1018ad69
tree142599e412187ee8ed5ab5977246c39ab008366d
parent856cefcd1c57da665e1690786a8be011ce7e4fa2
zfs_receive_one: Check for the more likely error first

If zfs_receive_one() gets back EINVAL, check for the more likely case,
embedded block pointers + encryption and return that error, before
falling back to the less likely case, a resumable stream when the
kernel has not been upgraded to support resume.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Sponsored-by: rsync.net
Sponsored-by: Klara Inc.
Closes #14379
lib/libzfs/libzfs_sendrecv.c