commit | ea8efc74bd0402b4d5f663d007b4e25fa29ea778 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Tue Mar 08 11:54:40 2011 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Mar 08 11:58:09 2011 -0500 |
tree | ad3f19c4281877767f6dce99f0e003284a159e71 | |
parent | 31339acd07b4ba687906702085127895a56eb920 [diff] |
Btrfs: make sure not to return overlapping extents to fiemap The btrfs fiemap code was incorrectly returning duplicate or overlapping extents in some cases. cp was blindly trusting this result and we would end up with a destination file that was bigger than the original because some bytes were copied twice. The fix here adjusts our offsets to make sure we're always moving forward in the fiemap results. Signed-off-by: Chris Mason <chris.mason@oracle.com>