HomeFreeBSD

Fix setting the large_block feature after receiving a snapshot

Description

Fix setting the large_block feature after receiving a snapshot

We are not allowed to dirty a filesystem when done receiving
a snapshot. In this case the flag SPA_FEATURE_LARGE_BLOCKS will
not be set on that filesystem since the filesystem is not on
dp_dirty_datasets, and a subsequent encrypted raw send will fail.
Fix this by checking in dsl_dataset_snapshot_sync_impl() if the feature
needs to be activated and do so if appropriate.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #13699
Closes #13782

Details

Provenance
g_amanakis_yahoo.comAuthored on Nov 18 2022, 7:38 PM
GitHub <noreply@github.com>Committed on Nov 18 2022, 7:38 PM
Parents
rG99c0479a4ef4: Correct multipathd.target to .service
Branches
Unknown
Tags
Unknown