blk/mtdoutstream: use lib_sostream_s to support seek

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen
2024-11-30 03:08:35 +08:00
committed by Xiang Xiao
parent 321419491e
commit eca83c4a73
3 changed files with 172 additions and 21 deletions
+2 -2
View File
@@ -293,7 +293,7 @@ struct lib_lzfoutstream_s
#ifndef CONFIG_DISABLE_MOUNTPOINT
struct lib_blkoutstream_s
{
struct lib_outstream_s common;
struct lib_sostream_s common;
FAR struct inode *inode;
struct geometry geo;
FAR unsigned char *cache;
@@ -303,7 +303,7 @@ struct lib_blkoutstream_s
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_MTD)
struct lib_mtdoutstream_s
{
struct lib_outstream_s common;
struct lib_sostream_s common;
FAR struct inode *inode;
struct mtd_geometry_s geo;
FAR unsigned char *cache;