linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* UBIFS robustness questions
@ 2009-07-24  4:00 Charles Manning
  2009-07-24  6:03 ` Artem Bityutskiy
  2009-07-24  6:43 ` Adrian Hunter
  0 siblings, 2 replies; 9+ messages in thread
From: Charles Manning @ 2009-07-24  4:00 UTC (permalink / raw)
  To: linux-mtd

This is probably documented somewhere but I could not find it...

What operations in UBIFS are robust to power failure and which are not?

I know for example that writing a file into flash does not mean it has been 
completely written to flash until after a sync, but what about other 
operations such as mv?

The reasonn I'm asking this is that I want to be able to "hot-swap" a 
directory of files without losing any file state.

What I'm considerings doing is something like:

Start with ~/runtime having a sane set of files

untar etc into ~/updated
sync
mv ~/updated ~/run-time
sync

What is unacceptable is that, at any time, a power failure/reboot results in 
~/runtime having a non-sane set of files.

* Does the above sequence look safe?
* Is the second sync required?


TIA

-- Charles

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

end of thread, other threads:[~2009-07-27  8:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24  4:00 UBIFS robustness questions Charles Manning
2009-07-24  6:03 ` Artem Bityutskiy
2009-07-24  6:43 ` Adrian Hunter
2009-07-24  9:24   ` Adrian Hunter
2009-07-24 10:03     ` Adrian Hunter
2009-07-24 23:39       ` Jamie Lokier
2009-07-26  6:29         ` Adrian Hunter
2009-07-26 19:21           ` Jamie Lokier
2009-07-27  8:09             ` Adrian Hunter

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).