Lines Matching refs:drro

435 	struct drr_object *drro = &(dsp->dsa_drr->drr_u.drr_object);
462 drro->drr_object = object;
463 drro->drr_type = dnp->dn_type;
464 drro->drr_bonustype = dnp->dn_bonustype;
465 drro->drr_blksz = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT;
466 drro->drr_bonuslen = dnp->dn_bonuslen;
467 drro->drr_checksumtype = dnp->dn_checksum;
468 drro->drr_compress = dnp->dn_compress;
469 drro->drr_toguid = dsp->dsa_toguid;
472 drro->drr_blksz > SPA_OLD_MAXBLOCKSIZE)
473 drro->drr_blksz = SPA_OLD_MAXBLOCKSIZE;
2047 receive_object(struct receive_writer_arg *rwa, struct drr_object *drro,
2055 if (drro->drr_type == DMU_OT_NONE ||
2056 !DMU_OT_IS_VALID(drro->drr_type) ||
2057 !DMU_OT_IS_VALID(drro->drr_bonustype) ||
2058 drro->drr_checksumtype >= ZIO_CHECKSUM_FUNCTIONS ||
2059 drro->drr_compress >= ZIO_COMPRESS_FUNCTIONS ||
2060 P2PHASE(drro->drr_blksz, SPA_MINBLOCKSIZE) ||
2061 drro->drr_blksz < SPA_MINBLOCKSIZE ||
2062 drro->drr_blksz > spa_maxblocksize(dmu_objset_spa(rwa->os)) ||
2063 drro->drr_bonuslen > DN_MAX_BONUSLEN) {
2067 err = dmu_object_info(rwa->os, drro->drr_object, &doi);
2071 object = err == 0 ? drro->drr_object : DMU_NEW_OBJECT;
2081 nblkptr = deduce_nblkptr(drro->drr_bonustype,
2082 drro->drr_bonuslen);
2084 if (drro->drr_blksz != doi.doi_data_block_size ||
2086 err = dmu_free_long_range(rwa->os, drro->drr_object,
2103 err = dmu_object_claim(rwa->os, drro->drr_object,
2104 drro->drr_type, drro->drr_blksz,
2105 drro->drr_bonustype, drro->drr_bonuslen, tx);
2106 } else if (drro->drr_type != doi.doi_type ||
2107 drro->drr_blksz != doi.doi_data_block_size ||
2108 drro->drr_bonustype != doi.doi_bonus_type ||
2109 drro->drr_bonuslen != doi.doi_bonus_size) {
2111 err = dmu_object_reclaim(rwa->os, drro->drr_object,
2112 drro->drr_type, drro->drr_blksz,
2113 drro->drr_bonustype, drro->drr_bonuslen, tx);
2120 dmu_object_set_checksum(rwa->os, drro->drr_object,
2121 drro->drr_checksumtype, tx);
2122 dmu_object_set_compress(rwa->os, drro->drr_object,
2123 drro->drr_compress, tx);
2128 VERIFY0(dmu_bonus_hold(rwa->os, drro->drr_object, FTAG, &db));
2131 ASSERT3U(db->db_size, >=, drro->drr_bonuslen);
2132 bcopy(data, db->db_data, drro->drr_bonuslen);
2135 DMU_OT_BYTESWAP(drro->drr_bonustype);
2137 drro->drr_bonuslen);
2600 struct drr_object *drro = &ra->rrd->header.drr_u.drr_object;
2601 uint32_t size = P2ROUNDUP(drro->drr_bonuslen, 8);
2609 err = dmu_object_info(ra->os, drro->drr_object, &doi);
2615 (err == 0 && doi.doi_data_block_size != drro->drr_blksz)) {
2616 objlist_insert(&ra->ignore_objlist, drro->drr_object);
2729 struct drr_object *drro = &rrd->header.drr_u.drr_object;
2730 err = receive_object(rwa, drro, rrd->payload);