Btrfs: add dummy extent if dst offset excceeds file end in
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 11 Sep 2011 14:52:25 +0000 (10:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 11 Sep 2011 14:52:25 +0000 (10:52 -0400)
commitd525e8ab022cb000e6e31a515ba8c3cf0d9c6130
treeafaa93134ca050e1169ed8fe68442b4522d9112e
parentd72c0842ff0e71342857723bb65f35b71f57b264
Btrfs: add dummy extent if dst offset excceeds file end in

You can see there's no file extent with range [0, 4096]. Check this by
btrfsck:

 # btrfsck /dev/sda7
 root 5 inode 258 errors 100
 ...

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c