public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Ronny Dierckx" <ronny.dierckx@telenet.be>
To: <linux-mtd@lists.infradead.org>
Subject: UBIFS synchronisation questions about file create/delete
Date: Thu, 26 Nov 2009 22:06:51 +0100	[thread overview]
Message-ID: <001301ca6edc$5fc49660$1f4dc320$@dierckx@telenet.be> (raw)

Hi,

I'm using UBIFS (git://git.infradead.org/~dedekind/ubifs-v2.6.27.git)
on an ARM device with OneNAND flash.

I've been reading the documentation, FAQ, ... about sync/fsync/fdatasync and
the
write-back buffers, but there are still some things I don't understand.

I create a file with vi, write some data in it, close it, don't call sync.
Then 
after waiting 10 minutes I cut the power. When the system is restarted, the
file is
not there anymore?! Is this normal behavior? Shouldn't there be at least
a file of 0 bytes because "UBIFS operations which change directory entries
are synchronous"?
Doesn't this mean that creating or deleting a file entry doesn't require a
sync ?

Thanks,

Ronny Dierckx

             reply	other threads:[~2009-11-26 21:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-26 21:06 Ronny Dierckx [this message]
2009-11-27  8:19 ` UBIFS synchronisation questions about file create/delete Adrian Hunter
2009-11-27  8:53   ` Jamie Lokier
2009-11-27 13:26   ` Ronny Dierckx
2009-11-27 13:44     ` Adrian Hunter
2009-11-27 14:21       ` Artem Bityutskiy

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='001301ca6edc$5fc49660$1f4dc320$@dierckx@telenet.be' \
    --to=ronny.dierckx@telenet.be \
    --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