From: Li Zefan Date: Fri, 19 Nov 2010 01:36:34 +0000 (+0000) Subject: btrfs: Set file size correctly in file clone X-Git-Tag: v2.6.37-rc4~6^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f3888ff6f0b9dce60705765752b788a92557644;p=pandora-kernel.git btrfs: Set file size correctly in file clone Set src_offset = 0, src_length = 20K, dest_offset = 20K. And the original filesize of the dest file 'file2' is 30K: # ls -l /mnt/file2 -rw-r--r-- 1 root root 30720 Nov 18 16:42 /mnt/file2 Now clone file1 to file2, the dest file should be 40K, but it still shows 30K: # ls -l /mnt/file2 -rw-r--r-- 1 root root 30720 Nov 18 16:42 /mnt/file2 Signed-off-by: Li Zefan Signed-off-by: Chris Mason --- Reading git-diff-tree failed