diff options
| author | Alexey Romanov <[email protected]> | 2024-07-18 08:45:24 +0300 |
|---|---|---|
| committer | Michael Trimarchi <[email protected]> | 2024-08-08 09:27:58 +0200 |
| commit | 25ee9c2005958e6f06609eef5c9d9915c77ece97 (patch) | |
| tree | a498469e3fd71c589f907d42227eb8ae3e2e7237 /include/ubi_uboot.h | |
| parent | cead69c528d4f107288717aeca6af52d0d9d47e9 (diff) | |
ubi: allow to write to volume with offset
Introduce ubi_volume_offset_write() helper, which
allow to write to ubi volume with specified offset.
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/ubi_uboot.h')
| -rw-r--r-- | include/ubi_uboot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h index a4be0feabbd..d36bb923482 100644 --- a/include/ubi_uboot.h +++ b/include/ubi_uboot.h @@ -48,7 +48,7 @@ extern int ubi_mtd_param_parse(const char *val, struct kernel_param *kp); 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_write(char *volume, void *buf, loff_t offset, size_t size); extern int ubi_volume_read(char *volume, char *buf, loff_t offset, size_t size); extern struct ubi_device *ubi_devices[]; |
