public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* UBIFS synchronisation questions about file create/delete
@ 2009-11-26 21:06 Ronny Dierckx
  2009-11-27  8:19 ` Adrian Hunter
  0 siblings, 1 reply; 6+ messages in thread
From: Ronny Dierckx @ 2009-11-26 21:06 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-27 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-26 21:06 UBIFS synchronisation questions about file create/delete Ronny Dierckx
2009-11-27  8:19 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox