Re: [U-Boot] [PATCH v2 1/2] ext4: Allow reading files with non-zero offset, clamp read len

2016-11-07 Thread Stephen Warren
On 11/06/2016 10:33 AM, Stefan Brüns wrote: Support was already implemented, but not hooked up. This fixes several fails in the test cases. diff --git a/fs/ext4/ext4fs.c b/fs/ext4/ext4fs.c /* Adjust len so it we can't read past the end of the file. */ - if (len > filesize) -

[U-Boot] [PATCH v2 1/2] ext4: Allow reading files with non-zero offset, clamp read len

2016-11-06 Thread Stefan Brüns
Support was already implemented, but not hooked up. This fixes several fails in the test cases. Signed-off-by: Stefan Brüns --- v2: - update ext4fs_read(...) calls from spl_ext.c - move clamping to ext4fs_read_file(...), i.e. correct the check for offset != 0 common/spl/spl_ext.c | 8