jingfei195887 commented on code in PR #16642:
URL: https://github.com/apache/nuttx/pull/16642#discussion_r2190289332


##########
drivers/mtd/ftl.c:
##########
@@ -789,7 +883,8 @@ static int ftl_unlink(FAR struct inode *inode)
  *
  ****************************************************************************/
 
-int ftl_initialize_by_path(FAR const char *path, FAR struct mtd_dev_s *mtd)
+int ftl_initialize_by_path(FAR const char *path, FAR struct mtd_dev_s *mtd,
+                           int oflags)

Review Comment:
   @xiaoxiang781216 @michallenc  However, there was another approach I once 
experimented with but ultimately discarded: implementing a new set of file 
operation interfaces in the FTL leveraging BCH. This method could fulfill the 
purpose. Internally, the FTL performs two conversions: character-to-block and 
block-to-MTD. Consequently, whether through mtd_register or ftl_initialize, we 
can acquire the oflags. Nevertheless, this solution proved overly intricate, 
compelling me to abandon it. Here is a block diagram illustrating this logic:
   
![image](https://github.com/user-attachments/assets/ef4a0211-bba1-4ee8-ace0-8cb23d5487a0)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to