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
GitHub <noreply@github.com>Committed on Sep 20 2022, 10:19 PM
Parents
rG3f400b0f5851: FreeBSD: Cleanup zfs_readdir()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGc50b3f14d33c: Delay ZFS_PROP_SHARESMB property to handle it for encrypted raw receive (authored by Ameer Hamza <106930537+ixhamza@users.noreply.github.com>).Sep 20 2022, 10:19 PM