diff options
| author | Suriyan Ramasami <[email protected]> | 2014-11-17 14:39:36 -0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2014-11-23 06:49:04 -0500 |
| commit | 9f12cd0e062614e19734b2ab37842d387457c5e5 (patch) | |
| tree | 81a892f216918c8a7904cd8adcc5a485f4f23288 /include | |
| parent | 1ad0b98a067a133c0e8a182649a76a4afd739594 (diff) | |
ext4: Prepare API change for files greater than 2GB
Change the internal EXT4 functions to use loff_t for offsets.
Signed-off-by: Suriyan Ramasami <[email protected]>
Acked-by: Simon Glass <[email protected]>
[trini: Update common/spl/spl_ext.c]
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ext4fs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h index 38970e48177..5c524a6d87c 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -125,12 +125,14 @@ int ext4fs_init(void); void ext4fs_deinit(void); int ext4fs_filename_check(char *filename); int ext4fs_write(const char *fname, unsigned char *buffer, - unsigned long sizebytes); + unsigned long sizebytes); +int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len, + loff_t *actwrite); #endif struct ext_filesystem *get_fs(void); -int ext4fs_open(const char *filename); -int ext4fs_read(char *buf, unsigned len); +int ext4fs_open(const char *filename, loff_t *len); +int ext4fs_read(char *buf, loff_t len, loff_t *actread); int ext4fs_mount(unsigned part_length); void ext4fs_close(void); void ext4fs_reinit_global(void); |
