From: Li Zefan Date: Fri, 19 Nov 2010 01:36:10 +0000 (+0000) Subject: btrfs: Check if dest_offset is block-size aligned before cloning file X-Git-Tag: v2.6.37-rc4~6^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a6b8daedaf3682bed3fc1d4e2390491f6e19c49;p=pandora-kernel.git btrfs: Check if dest_offset is block-size aligned before cloning file We've done the check for src_offset and src_length, and We should also check dest_offset, otherwise we'll corrupt the destination file: (After cloning file1 to file2 with unaligned dest_offset) # cat /mnt/file2 cat: /mnt/file2: Input/output error Signed-off-by: Li Zefan Signed-off-by: Chris Mason --- Reading git-diff-tree failed