2736 sendfs, stream_nv, stream_avl, top_zfs, cleanup_fd,
2737 action_handlep, sendsnap);
2738 if (error == ENODATA) {
2739 error = 0;
2740 break;
2741 }
2742 anyerr |= error;
2743 } while (error == 0);
2744
2745 if (drr->drr_payloadlen != 0 && fromsnap != NULL) {
2746 /*
2747 * Now that we have the fs's they sent us, try the
2748 * renames again.
2749 */
2750 softerr = recv_incremental_replication(hdl, tofs, flags,
2751 stream_nv, stream_avl, NULL);
2752 }
2753
2754 out:
2755 fsavl_destroy(stream_avl);
2756 if (stream_nv)
2757 nvlist_free(stream_nv);
2758 if (softerr)
2759 error = -2;
2760 if (anyerr)
2761 error = -1;
2762 return (error);
2763 }
2764
2765 static void
2766 trunc_prop_errs(int truncated)
2767 {
2768 ASSERT(truncated != 0);
2769
2770 if (truncated == 1)
2771 (void) fprintf(stderr, dgettext(TEXT_DOMAIN,
2772 "1 more property could not be set\n"));
2773 else
2774 (void) fprintf(stderr, dgettext(TEXT_DOMAIN,
2775 "%d more properties could not be set\n"), truncated);
2776 }
|
2736 sendfs, stream_nv, stream_avl, top_zfs, cleanup_fd,
2737 action_handlep, sendsnap);
2738 if (error == ENODATA) {
2739 error = 0;
2740 break;
2741 }
2742 anyerr |= error;
2743 } while (error == 0);
2744
2745 if (drr->drr_payloadlen != 0 && fromsnap != NULL) {
2746 /*
2747 * Now that we have the fs's they sent us, try the
2748 * renames again.
2749 */
2750 softerr = recv_incremental_replication(hdl, tofs, flags,
2751 stream_nv, stream_avl, NULL);
2752 }
2753
2754 out:
2755 fsavl_destroy(stream_avl);
2756 nvlist_free(stream_nv);
2757 if (softerr)
2758 error = -2;
2759 if (anyerr)
2760 error = -1;
2761 return (error);
2762 }
2763
2764 static void
2765 trunc_prop_errs(int truncated)
2766 {
2767 ASSERT(truncated != 0);
2768
2769 if (truncated == 1)
2770 (void) fprintf(stderr, dgettext(TEXT_DOMAIN,
2771 "1 more property could not be set\n"));
2772 else
2773 (void) fprintf(stderr, dgettext(TEXT_DOMAIN,
2774 "%d more properties could not be set\n"), truncated);
2775 }
|