summaryrefslogtreecommitdiff
path: root/include/ext4fs.h
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2016-11-06 17:33:57 (GMT)
committerTom Rini <trini@konsulko.com>2016-11-21 19:07:27 (GMT)
commit66a47ff2d8f037e1e9d641623257894a9975c325 (patch)
treee88226f6c864e3916648c4ce09ccd0af9b194a37 /include/ext4fs.h
parentf81db56f2fd6dc16efeaec2961121244765a1f11 (diff)
downloadu-boot-66a47ff2d8f037e1e9d641623257894a9975c325.tar.xz
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 <stefan.bruens@rwth-aachen.de> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'include/ext4fs.h')
-rw-r--r--include/ext4fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h
index 965cd9e..bb55639 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);