Lines Matching refs:drrb
272 struct drr_begin *drrb = &drr->drr_u.drr_begin;
277 ASSERT3U(drrb->drr_magic, ==, DMU_BACKUP_MAGIC);
280 fflags = DMU_GET_FEATUREFLAGS(drrb->drr_versioninfo);
283 DMU_SET_FEATUREFLAGS(drrb->drr_versioninfo, fflags);
2770 struct drr_begin *drrb = &drr->drr_u.drr_begin;
2774 cp = strrchr(drrb->drr_toname, '/');
2780 i = (cp - drrb->drr_toname);
2783 i = strcspn(drrb->drr_toname, "/@");
2786 (void) strlcat(tofs, &drrb->drr_toname[i],
3029 struct drr_begin *drrb = &drr->drr_u.drr_begin;
3051 nvlist_t *fs = fsavl_find(stream_avl, drrb->drr_toguid,
3107 int len = strlen(drrb->drr_toname);
3110 (void) strcpy(&cp[1], drrb->drr_toname);
3113 chopprefix = drrb->drr_toname + (chopprefix - sendfs);
3127 chopprefix = strchr(drrb->drr_toname, '/');
3129 chopprefix = strchr(drrb->drr_toname, '@');
3135 chopprefix = drrb->drr_toname + strlen(sendfs);
3144 chopprefix = drrb->drr_toname + strlen(drrb->drr_toname);
3147 ASSERT(strstr(drrb->drr_toname, sendfs) == drrb->drr_toname);
3148 ASSERT(chopprefix > drrb->drr_toname);
3149 ASSERT(chopprefix <= drrb->drr_toname + strlen(drrb->drr_toname));
3172 } else if (drrb->drr_flags & DRR_FLAG_CLONE) {
3174 drrb->drr_fromguid, B_FALSE, zc.zc_string) != 0) {
3185 boolean_t resuming = DMU_GET_FEATUREFLAGS(drrb->drr_versioninfo) &
3187 stream_wantsnewfs = (drrb->drr_fromguid == NULL ||
3188 (drrb->drr_flags & DRR_FLAG_CLONE) || originsnap) && !resuming;
3228 if ((flags->isprefix || (*(chopprefix = drrb->drr_toname +
3233 if (guid_to_name(hdl, zc.zc_name, drrb->drr_fromguid,
3359 drrb->drr_fromguid ? "incremental" : "full",
3360 drrb->drr_toname, zc.zc_value);
3456 fs = fsavl_find(local_avl, drrb->drr_toguid, NULL);
3601 struct drr_begin *drrb = &drr.drr_u.drr_begin;
3637 if (drrb->drr_magic == BSWAP_64(DMU_BACKUP_MAGIC)) {
3648 drrb->drr_magic = BSWAP_64(drrb->drr_magic);
3649 drrb->drr_versioninfo = BSWAP_64(drrb->drr_versioninfo);
3650 drrb->drr_creation_time = BSWAP_64(drrb->drr_creation_time);
3651 drrb->drr_type = BSWAP_32(drrb->drr_type);
3652 drrb->drr_flags = BSWAP_32(drrb->drr_flags);
3653 drrb->drr_toguid = BSWAP_64(drrb->drr_toguid);
3654 drrb->drr_fromguid = BSWAP_64(drrb->drr_fromguid);
3657 if (drrb->drr_magic != DMU_BACKUP_MAGIC || drr.drr_type != DRR_BEGIN) {
3663 featureflags = DMU_GET_FEATUREFLAGS(drrb->drr_versioninfo);
3664 hdrtype = DMU_GET_STREAM_HDRTYPE(drrb->drr_versioninfo);
3674 if (strchr(drrb->drr_toname, '@') == NULL) {
3680 if (DMU_GET_STREAM_HDRTYPE(drrb->drr_versioninfo) == DMU_SUBSTREAM) {
3700 assert(DMU_GET_STREAM_HDRTYPE(drrb->drr_versioninfo) ==