Re: [PATCH U-BOOT v2] btrfs: fix offset when reading compressed extents

2023-05-08 Thread Tom Rini
On Tue, 18 Apr 2023 15:41:55 +0900, Dominique Martinet wrote: > btrfs_read_extent_reg correctly computed the extent offset in the > BTRFS_COMPRESS_NONE case, but did not account for the 'offset - key.offset' > part correctly in the compressed case, making the function read > incorrect data. > > I

[PATCH U-BOOT v2] btrfs: fix offset when reading compressed extents

2023-04-18 Thread Dominique Martinet
From: Dominique Martinet btrfs_read_extent_reg correctly computed the extent offset in the BTRFS_COMPRESS_NONE case, but did not account for the 'offset - key.offset' part correctly in the compressed case, making the function read incorrect data. In the case I examined, the last 4k of a file was

Re: [PATCH U-BOOT v2] btrfs: fix offset when reading compressed extents

2023-04-18 Thread Qu Wenruo
On 2023/4/18 14:41, Dominique Martinet wrote: From: Dominique Martinet btrfs_read_extent_reg correctly computed the extent offset in the BTRFS_COMPRESS_NONE case, but did not account for the 'offset - key.offset' part correctly in the compressed case, making the function read incorrect data.