Re: [U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-10-01 Thread Yevgeny Popovych
x reading large files? I haven't > encountered such an error yet, but can try creating a large enough > file. How large should it be? > > On Mon, 1 Oct 2018 08:50:11 +0300 > Yevgeny Popovych wrote: > >> Just a kindly reminder :) >> >> On 09/07/2018 12:59 PM

Re: [U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-09-30 Thread Yevgeny Popovych
Just a kindly reminder :) On 09/07/2018 12:59 PM, Yevgeny Popovych wrote: > When traversing slots in a btree (via btrfs_path) with btrfs_next_slot(), > we didn't correctly identify that the last slot in the leaf was reached > and we should jump to the next leaf. > > This could l

[U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-09-07 Thread Yevgeny Popovych
partially * file is read but is corrupted * (any) metadata being corrupted or not read at all, etc The easiest way to reproduce this is to read a large enough file that its EXTENT_DATA items don't fit into a single leaf. Signed-off-by: Yevgeny Popovych Cc: Marek Behun --- fs/btrfs/ctree.c | 2

[U-Boot] [PATCH] fs: btrfs: Do not fail when all root_backups are empty

2018-06-11 Thread Yevgeny Popovych
of empty super_roots. * btrfs_read_superblock() verifies number of devices from the superblock itself, not newest root_backup. Signed-off-by: Yevgeny Popovych Cc: Marek Behun Cc: Sergey Struzh --- fs/btrfs/btrfs.h | 1 - fs/btrfs/super.c | 30 ++ 2 files changed

[U-Boot] [PATCH] fs: btrfs: Fix not all CHUNK_ITEMs being read from CHUNK_TREE

2018-06-05 Thread Yevgeny Popovych
-CHUNK_ITEM, which makes only some portion of CHUNK_ITEMs being read. Change it to skip over non-chunk items. Signed-off-by: Yevgeny Popovych Cc: Marek Behun Cc: Sergey Struzh --- fs/btrfs/chunk-map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/chunk-map.c b/fs/btrfs