HomeFreeBSD

zfs_receive_one: Check for the more likely error first

Description

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

Details

Provenance
allanjudeAuthored on Jan 20 2023, 7:11 PM
GitHub <noreply@github.com>Committed on Jan 20 2023, 7:11 PM
Parents
rG856cefcd1c57: Cleanup ->dd_space_towrite should be unsigned
Branches
Unknown
Tags
Unknown