Skip to content
Snippets Groups Projects
user avatar
Li Zefan authored
Suppose:
- the source extent is: [0, 100]
- the src offset is 10
- the clone length is 90
- the dest offset is 0

This statement:

	new_key.offset = key.offset + destoff - off

will produce such an extent for the dest file:

	[ino, BTRFS_EXTENT_DATA_KEY, -10]

, which is obviously wrong.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
4d728ec7
Name Last commit Last update
..