xiaoxiang781216 commented on code in PR #15649: URL: https://github.com/apache/nuttx/pull/15649#discussion_r1925159380
########## drivers/bch/bchdev_driver.c: ########## @@ -435,6 +435,15 @@ static int bch_ioctl(FAR struct file *filep, int cmd, unsigned long arg) break; #endif + case BIOC_DISCARD: + { + /* Invalidate the sector so next read is from the device. */ + + bch->sector = (size_t)-1; + ret = OK; Review Comment: should we continue to the next level? ########## drivers/bch/bchdev_driver.c: ########## @@ -435,6 +435,15 @@ static int bch_ioctl(FAR struct file *filep, int cmd, unsigned long arg) break; #endif + case BIOC_DISCARD: Review Comment: should we modify drivers/mtd/ftl.c? -- 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