HomeFreeBSD

Delay ZFS_PROP_SHARESMB property to handle it for encrypted raw receive

Description

Delay ZFS_PROP_SHARESMB property to handle it for encrypted raw receive

For encrypted raw receive, objset creation is delayed until a call to
dmu_recv_stream(). ZFS_PROP_SHARESMB property requires objset to be
populated when calling zpl_earlier_version(). To correctly handle the
ZFS_PROP_SHARESMB property for encrypted raw receive, this change
delays setting the property.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #13878

Details

Provenance
Ameer Hamza <106930537+ixhamza@users.noreply.github.com>Authored on Sep 20 2022, 10:19 PM
Tony Hutter <hutter2@llnl.gov>Committed on Sep 21 2022, 8:15 PM
Parents
rGd5105f068f19: zfs recv hangs if max recordsize is less than received recordsize
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG035e52f59152: Delay ZFS_PROP_SHARESMB property to handle it for encrypted raw receive (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Sep 21 2022, 8:15 PM