Files
mirror_zfs/include/sys
Pawel Jakub Dawidek bd8c6bd66f Deny block cloning is dbuf size doesn't match BP size.
I don't know an easy way to shrink down dbuf size, so just deny block cloning
into dbufs that don't match our BP's size.

This fixes the following situation:
1. Create a small file, eg. 1kB of random bytes. Its dbuf will be 1kB.
2. Create a larger file, eg. 2kB of random bytes. Its dbuf will be 2kB.
3. Truncate the large file to 0. Its dbuf will remain 2kB.
4. Clone the small file into the large file. Small file's BP lsize is
   1kB, but the large file's dbuf is 2kB.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #14825
2023-05-11 16:06:52 -07:00
..
2023-04-20 10:07:56 -07:00
2022-05-10 10:18:51 -07:00
2022-05-25 09:18:49 -07:00
2021-06-07 09:02:47 -07:00
2023-03-08 11:17:23 -08:00
2023-03-08 11:17:23 -08:00
2023-01-25 11:30:24 -08:00
2023-01-10 13:39:22 -08:00
2022-10-20 11:57:15 -07:00
2023-05-11 16:06:36 -07:00
2023-03-10 11:59:53 -08:00
2023-03-14 15:25:50 -07:00
2023-05-09 09:03:10 -07:00
2017-10-11 16:54:48 -04:00
2021-06-10 10:42:31 -06:00
2019-06-19 09:48:12 -07:00
2022-07-11 14:16:13 -07:00
2023-03-28 16:51:58 -07:00
2023-04-20 10:07:56 -07:00
2022-09-06 09:43:21 -07:00
2023-03-24 10:27:07 -07:00
2022-10-20 11:57:15 -07:00
2018-02-08 15:28:18 -08:00
2022-10-29 13:05:11 -07:00
2023-03-10 11:59:53 -08:00
2022-06-29 14:08:54 -07:00
2020-07-03 11:05:50 -07:00
2023-01-05 09:31:55 -08:00