Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2012 06:41:20 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r237747 - stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201206290641.q5T6fKE1024088@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Fri Jun 29 06:41:19 2012
New Revision: 237747
URL: http://svn.freebsd.org/changeset/base/237747

Log:
  MFC r237458:
  Import Illumos revision 13736:9f1d48e1681f
  2901 ZFS receive fails for exabyte sparse files
  
  References:
  https://www.illumos.org/issues/2901
  
  Obtained from:	illumos (issue #2901)

Modified:
  stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)

Modified: stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
==============================================================================
--- stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c	Fri Jun 29 06:41:03 2012	(r237746)
+++ stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c	Fri Jun 29 06:41:19 2012	(r237747)
@@ -96,6 +96,9 @@ dump_free(dmu_sendarg_t *dsp, uint64_t o
 {
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206290641.q5T6fKE1024088>