mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Revert "Handle new dnode size in incremental..."
This reverts commit65dcb0f67auntil a comprehensive fix is finalized. The stricter interior dnode detection in4c5b89f59eand the new test case added by this patch revealed a issue with resizing dnodes when receiving an incremental backup stream. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #6576
This commit is contained in:
@@ -2482,13 +2482,11 @@ receive_object(struct receive_writer_arg *rwa, struct drr_object *drro,
|
||||
} else if (drro->drr_type != doi.doi_type ||
|
||||
drro->drr_blksz != doi.doi_data_block_size ||
|
||||
drro->drr_bonustype != doi.doi_bonus_type ||
|
||||
drro->drr_bonuslen != doi.doi_bonus_size ||
|
||||
drro->drr_dn_slots != (doi.doi_dnodesize >> DNODE_SHIFT)) {
|
||||
drro->drr_bonuslen != doi.doi_bonus_size) {
|
||||
/* currently allocated, but with different properties */
|
||||
err = dmu_object_reclaim_dnsize(rwa->os, drro->drr_object,
|
||||
err = dmu_object_reclaim(rwa->os, drro->drr_object,
|
||||
drro->drr_type, drro->drr_blksz,
|
||||
drro->drr_bonustype, drro->drr_bonuslen,
|
||||
drro->drr_dn_slots << DNODE_SHIFT, tx);
|
||||
drro->drr_bonustype, drro->drr_bonuslen, tx);
|
||||
}
|
||||
if (err != 0) {
|
||||
dmu_tx_commit(tx);
|
||||
|
||||
Reference in New Issue
Block a user