Li Zefan
2a6b8daeda
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>
2010-11-21 22:26:05 -05:00
..
2010-06-11 14:18:47 -07:00
2010-05-25 10:34:58 -04:00
2009-10-05 09:44:45 -04:00
2010-05-25 10:34:52 -04:00
2010-11-21 22:26:03 -05:00
2010-10-29 15:14:37 -04:00
2010-10-29 21:42:10 -04:00
2010-05-25 10:34:50 -04:00
2010-05-25 10:34:50 -04:00
2010-10-29 15:14:31 -04:00
2010-11-21 22:26:02 -05:00
2010-05-25 10:34:58 -04:00
2010-03-15 10:58:13 -04:00
2010-11-21 22:26:03 -05:00
2010-11-21 22:26:03 -05:00
2010-10-29 15:14:23 -04:00
2009-09-18 16:08:52 -04:00
2010-11-21 22:26:04 -05:00
2010-05-25 10:34:57 -04:00
2010-06-11 14:18:47 -07:00
2010-10-29 09:26:36 -04:00
2010-10-29 09:26:35 -04:00
2009-06-10 11:29:53 -04:00
2010-05-25 10:34:50 -04:00
2009-09-21 15:56:00 -04:00
2010-11-21 22:26:04 -05:00
2010-11-21 22:26:05 -05:00
2010-10-29 21:41:57 -04:00
2009-12-17 13:23:24 -08:00
2010-03-30 22:02:32 +09:00
2009-03-09 11:45:38 -04:00
2009-06-10 11:29:46 -04:00
2010-10-29 15:14:37 -04:00
2010-05-25 10:34:57 -04:00
2009-09-21 15:56:00 -04:00
2009-07-22 16:52:13 -04:00
2010-03-30 22:02:32 +09:00
2010-03-08 16:26:50 -05:00
2010-10-29 15:14:31 -04:00
2010-10-29 15:14:37 -04:00
2010-11-21 22:26:05 -05:00
2010-03-07 17:04:49 -08:00
2010-10-29 15:41:32 -04:00
2010-10-29 15:41:32 -04:00
2010-10-29 15:14:37 -04:00
2010-10-29 15:14:37 -04:00
2010-05-25 10:34:53 -04:00
2010-10-29 15:14:37 -04:00
2009-09-21 19:23:48 -04:00
2010-10-29 15:14:37 -04:00
2010-05-21 18:31:18 -04:00
2010-10-29 15:14:37 -04:00