From: Richard Weinberger <richard.weinberger@gmail.com>
To: JH <jupiter.hce@gmail.com>
Cc: linux-mtd <linux-mtd@lists.infradead.org>
Subject: Re: File IO write flush time span
Date: Tue, 25 Feb 2020 09:54:10 +0100 [thread overview]
Message-ID: <CAFLxGvy1SSc6-snBCViMUf79bON7w3xNPfDLJeYeBf43edDvzg@mail.gmail.com> (raw)
In-Reply-To: <CAA=hcWS1WPA-Sb93rGgXYFnJckYtwypTXS2LTZ=HhLRiUfYnyw@mail.gmail.com>
On Tue, Feb 25, 2020 at 9:45 AM JH <jupiter.hce@gmail.com> 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/
prev parent reply other threads:[~2020-02-25 8:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 5:58 File IO write flush time span JH
2020-02-25 8:31 ` Richard Weinberger
2020-02-25 8:45 ` JH
2020-02-25 8:54 ` Richard Weinberger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFLxGvy1SSc6-snBCViMUf79bON7w3xNPfDLJeYeBf43edDvzg@mail.gmail.com \
--to=richard.weinberger@gmail.com \
--cc=jupiter.hce@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).