diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2013-03-21 15:30:23 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-03-28 14:51:26 +0100 |
commit | adaa4b8e4d47eeb114513c2f7a172929154b94bd (patch) | |
tree | dc440dfabc838099c99dae06c9ed0d5361e87ac9 /fs/btrfs/extent-tree.c | |
parent | Btrfs: fix race between mmap writes and compression (diff) | |
download | linux-adaa4b8e4d47eeb114513c2f7a172929154b94bd.tar.xz linux-adaa4b8e4d47eeb114513c2f7a172929154b94bd.zip |
Btrfs: fix EIO from btrfs send in is_extent_unchanged for punched holes
When you take a snapshot, punch a hole where there has been data, then take
another snapshot and try to send an incremental stream, btrfs send would
give you EIO. That is because is_extent_unchanged had no support for holes
being punched. With this patch, instead of returning EIO we just return
0 (== the extent is not unchanged) and we're good.
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Cc: Alexander Block <ablock84@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions