Skip to content

Commit

Permalink
2901 ZFS receive fails for exabyte sparse files
Browse files Browse the repository at this point in the history
Reviewed by: Matthew Ahrens <[email protected]>
Approved by: Dan McDonald <[email protected]>
  • Loading branch information
Simon Klinkert committed Jun 22, 2012
1 parent 2e3183c commit 534029e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/src/uts/common/fs/zfs/dmu_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ dump_free(dmu_sendarg_t *dsp, uint64_t object, uint64_t offset,
{
struct drr_free *drrf = &(dsp->dsa_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
Expand Down

0 comments on commit 534029e

Please sign in to comment.