Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-13 Thread Andreas Schwab
On Feb 13 2023, Qu Wenruo wrote: > On 2023/2/13 00:20, Andreas Schwab wrote: >> When I print ce->size in __btrfs_map_block, it is almost always >> 1073741824, which looks bogus. >> > Can you provide the image of that filesystem? How do I do that? -- Andreas Schwab, sch...@linux-m68k.org GPG

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Qu Wenruo
On 2023/2/13 00:20, Andreas Schwab wrote: When I print ce->size in __btrfs_map_block, it is almost always 1073741824, which looks bogus. Can you provide the image of that filesystem? Thanks, Qu

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
When I print ce->size in __btrfs_map_block, it is almost always 1073741824, which looks bogus. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
The length returned by btrfs_map_block is clearly bogus: read_extent_data: cur=615817216, orig_len=16384, cur_len=16384 read_extent_data: btrfs_map_block: cur_len=479944704; ret=0 read_extent_data: ret=0 read_extent_data: cur=615833600, orig_len=4096, cur_len=4096 read_extent_data:

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
On Dez 30 2022, Qu Wenruo wrote: > [BUG] > Since btrfs supports single device RAID0 at mkfs time after btrfs-progs > v5.14, if we create a single device raid0 btrfs, and created a file > crossing stripe boundary: > > # mkfs.btrfs -m dup -d raid0 test.img > # mount test.img mnt > # xfs_io -f

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-01-12 Thread Tom Rini
On Fri, Dec 30, 2022 at 09:07:05AM +0800, Qu Wenruo wrote: > [BUG] > Since btrfs supports single device RAID0 at mkfs time after btrfs-progs > v5.14, if we create a single device raid0 btrfs, and created a file > crossing stripe boundary: > > # mkfs.btrfs -m dup -d raid0 test.img > # mount

[PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2022-12-29 Thread Qu Wenruo
[BUG] Since btrfs supports single device RAID0 at mkfs time after btrfs-progs v5.14, if we create a single device raid0 btrfs, and created a file crossing stripe boundary: # mkfs.btrfs -m dup -d raid0 test.img # mount test.img mnt # xfs_io -f -c "pwrite 0 128K" mnt/file # umount mnt