HomeFreeBSD

Reinstate raw receive check when truncating

Description

Reinstate raw receive check when truncating

This patch re-adds a check that was removed in 369aa50. The check
confirms that a raw receive is not occuring before truncating an
object's dn_maxblkid. At the time, it was believed that all cases
that would hit this code path would be handled in other places,
but that was not the case.

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8852
Closes #8857

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Jun 6 2019, 8:47 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 6 2019, 8:47 PM
Parents
rGb7109a413c47: l2arc_apply_transforms: Fix typo in comment
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfd7a657bffcc: Reinstate raw receive check when truncating (authored by Tom Caputi <tcaputi@datto.com>).Jun 6 2019, 8:47 PM