On Tue, Feb 25, 2020 at 9:45 AM JH <jupiter.hce@xxxxxxxxx> wrote: > I was actually talking about applications write files to a UBIFS > volume mounted as RW in Linux, let's say if I write a file by vi, will > it immediately flush to the NAND or will it stay in cache until some > algorithm in MTD to erase NAND pages and flush the cache to NAND page > based on size of output or time, is it correct? UBIFS is a filesystem and follows the rules of the vfs and pagecache. But it is less forgiving than ext3/4. To make sure data hits the NAND you need to properly use fsync/fdatasync(). -- Thanks, //richard ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/