X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=module%2Fzfs%2Fdmu_send.c;h=9f9003744b44c03477f48d246f20ee234747125a;hb=1bd201e70d57464fd26bf9089ea4b44fd49e4f2d;hp=2f06132116e8da7f5c9b5f44021f77ceafc7037b;hpb=330d06f90d143b41b276796526a66a1c1fff046d;p=zfs.git diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index 2f06132..9f90037 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -95,6 +95,9 @@ dump_free(struct backuparg *ba, uint64_t object, uint64_t offset, { struct drr_free *drrf = &(ba->drr->drr_u.drr_free); + if (length != -1ULL && offset + length < offset) + length = -1ULL; + /* * If there is a pending op, but it's not PENDING_FREE, push it out, * since free block aggregation can only be done for blocks of the