NAND write buffering

Josh Boyer jwboyer at gmail.com
Mon Dec 12 10:37:40 EST 2005


On 12/12/05, Bernhard Priewasser <priewasser at gmail.com> wrote:
>
> When is NAND wbuf flushed?
> sync()

Yes.

> fsync()

Yes.

> fflush()?

Not necessarily.  From the fflush man page:

"Note that fflush() only flushes the user space buffers provided by
the C library.  To ensure that the data is physically stored on disk
the kernel buffers must be flushed too, e.g. with sync(2) or
fsync(2)."

> fclose()?

Not necessarily.  See the man page in the NOTES section.  It says the
same as fflush.

josh




More information about the linux-mtd mailing list