aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-11-19 01:36:10 +0000
committerChris Mason <chris.mason@oracle.com>2010-11-21 22:26:05 -0500
commit2a6b8daedaf3682bed3fc1d4e2390491f6e19c49 (patch)
tree76f418aa17a1e3e690d5c1fb164e0c4b96ca1e8d /fs/dlm
parent0de90876c6cb774d4a424dafc1fc9ec50071b81b (diff)
downloadkernel_samsung_smdk4412-2a6b8daedaf3682bed3fc1d4e2390491f6e19c49.zip
kernel_samsung_smdk4412-2a6b8daedaf3682bed3fc1d4e2390491f6e19c49.tar.gz
kernel_samsung_smdk4412-2a6b8daedaf3682bed3fc1d4e2390491f6e19c49.tar.bz2
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 <lizf@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/dlm')
0 files changed, 0 insertions, 0 deletions