From 66a47ff2d8f037e1e9d641623257894a9975c325 Mon Sep 17 00:00:00 2001 From: Stefan Brüns Date: Sun, 6 Nov 2016 18:33:57 +0100 Subject: ext4: Allow reading files with non-zero offset, clamp read len Support was already implemented, but not hooked up. This fixes several fails in the test cases. Signed-off-by: Stefan Brüns Acked-by: Stephen Warren --- include/ext4fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ext4fs.h') diff --git a/include/ext4fs.h b/include/ext4fs.h index 965cd9e9c50..bb556391072 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -135,7 +135,7 @@ int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len, struct ext_filesystem *get_fs(void); int ext4fs_open(const char *filename, loff_t *len); -int ext4fs_read(char *buf, loff_t len, loff_t *actread); +int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread); int ext4fs_mount(unsigned part_length); void ext4fs_close(void); void ext4fs_reinit_global(void); -- cgit v1.2.3