commit | 5f3888ff6f0b9dce60705765752b788a92557644 | [log] [tgz] |
---|---|---|
author | Li Zefan <lizf@cn.fujitsu.com> | Fri Nov 19 01:36:34 2010 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Sun Nov 21 22:26:06 2010 -0500 |
tree | c7745507d85f68b188f0c9b11cc6f783f0d0cb86 | |
parent | 2a6b8daedaf3682bed3fc1d4e2390491f6e19c49 [diff] |
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 <lizf@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>