summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@gmail.com>2014-01-28 02:38:06 +0100
committerChris Mason <clm@fb.com>2014-01-29 16:06:25 +0100
commitbf54f412f0624786ac8a115110b5203430a9eebb (patch)
tree601f2590ec4d426938e015ebd476c24a1d522eb6 /fs/btrfs/backref.c
parentBtrfs: add a reschedule point in btrfs_find_all_roots() (diff)
downloadlinux-bf54f412f0624786ac8a115110b5203430a9eebb.tar.xz
linux-bf54f412f0624786ac8a115110b5203430a9eebb.zip
Btrfs: fix send file hole detection leading to data corruption
There was a case where file hole detection was incorrect and it would cause an incremental send to override a section of a file with zeroes. This happened in the case where between the last leaf we processed which contained a file extent item for our current inode and the leaf we're currently are at (and has a file extent item for our current inode) there are only leafs containing exclusively file extent items for our current inode, and none of them was updated since the previous send operation. The file hole detection code would incorrectly consider the file range covered by these leafs as a hole. A test case for xfstests follows soon. Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/backref.c')
0 files changed, 0 insertions, 0 deletions