Skip to content
Permalink
Browse files

2901 ZFS receive fails for exabyte sparse files

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@nexenta.com>
  • Loading branch information...
sklinkert committed Jun 22, 2012
1 parent 2e3183c commit 534029e5aa7701f85c9a4e201014b5a5a1aaf488
Showing with 3 additions and 0 deletions.
  1. +3 −0 usr/src/uts/common/fs/zfs/dmu_send.c
@@ -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

0 comments on commit 534029e

Please sign in to comment.
You can’t perform that action at this time.