summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexey Romanov <[email protected]>2024-07-18 08:45:23 +0300
committerMichael Trimarchi <[email protected]>2024-08-08 09:27:55 +0200
commitcead69c528d4f107288717aeca6af52d0d9d47e9 (patch)
tree2fe5d8441951b5fff016ebe063edcfbbf6e7ccf3 /include
parentd12689af6c6d12f1c49d988e6c418afbbd9b82c5 (diff)
ubi: allow to read from volume with offset
Now user can pass an additional parameter 'offset' to ubi_volume_read() function. Signed-off-by: Alexey Romanov <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Acked-by: Heiko Schocher <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/ubi_uboot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h
index d7a8851094b..a4be0feabbd 100644
--- a/include/ubi_uboot.h
+++ b/include/ubi_uboot.h
@@ -49,7 +49,7 @@ extern int ubi_init(void);
extern void ubi_exit(void);
extern int ubi_part(char *part_name, const char *vid_header_offset);
extern int ubi_volume_write(char *volume, void *buf, size_t size);
-extern int ubi_volume_read(char *volume, char *buf, size_t size);
+extern int ubi_volume_read(char *volume, char *buf, loff_t offset, size_t size);
extern struct ubi_device *ubi_devices[];
int cmd_ubifs_mount(char *vol_name);