]> granicus.if.org Git - zfs/commit
Reinstate raw receive check when truncating
authorTom Caputi <tcaputi@datto.com>
Thu, 6 Jun 2019 20:47:34 +0000 (16:47 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 7 Jun 2019 19:45:40 +0000 (12:45 -0700)
commit8dc8bbde6ed082cb22a3d3a8f662d112e3dafecf
tree98c6da775f3cde5c781e0d427c59707f39603e43
parent9fd95a2f1bdda6d7d8d947c9658d432d9f7821e3
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
module/zfs/dnode_sync.c