michallenc commented on code in PR #15649: URL: https://github.com/apache/nuttx/pull/15649#discussion_r1925361022
########## 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; + + /* Go through */ Review Comment: Fixed -- 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