From: Artem Bityutskiy
-o sync
" mount option) UBIFS shows good
@@ -160,6 +161,47 @@ subsystems involved:
+Both UBI (see here) and UBIFS are +tolerant to power-cuts, and they were designed with this property in mind.
+ +UBIFS has internal debugging infrastructure to emulate power failures and +the authors used it for extensive testing. It was tested for long time with +power-fail emulation. The advantage of the emulation is that it emulates power +failures even at the situations which happen not very often. For example, when +the master node is updated, or the log is changed. The probability to interrupt +the system at those moments is very low in real-life.
+ +There is also a powerful user-space test program called integck
+which performs a lot of random I/O operations and checks the integrity of the
+FS after remount. This test can also handle emulated power-cuts and check the
+FS integrity.
Real power-cut tests have also done on OneNAND flash. We used Power +Node devices which are controlled via serial line and may switch the power of +the connected device on and off. UBIFS survived more than 100000 power-cuts +while running stress tests.
+ +We've also done real power-cut tests on Spansion NOR flash. Some problems +were found, but they were fixed and the board survived 10000 power-cuts after +this. Please, see related discussions at the +MTD mailing list. The thread has +"UBIFS Corrupt during power failure" subject. The beginning of the thread +may be found +here, +then it continues +here, +and then continues +here, +and +here, +and +here. +
+ + +UBIFS is in mainline since 17 July 2008 and the first kernel release which diff --git a/faq/ubifs.xml b/faq/ubifs.xml index e7aaa40..7d0af9a 100644 --- a/faq/ubifs.xml +++ b/faq/ubifs.xml @@ -33,7 +33,6 @@
Yes, both UBI (see here) and UBIFS are -tolerant to power-cuts, and they were designed with this property in mind.
- -UBIFS has internal debugging infrastructure to emulate power failures and -the authors used it for extensive testing. It was tested for long time with -power-fail emulation (see here). -The advantage of the emulation is that it emulates power failures even at the -situations which happen not very often. For example, when the master node is -updated, or the log is changed. The probability to interrupt the system at -those moments is very low in real-life.
- -Real power-cut tests have also done on OneNAND flash. We used Power -Node devices which are controlled via serial line and may switch the power of -the connected device on and off. UBIFS survived more than 100000 power-cuts -while running stress tests.
- -We've also done real power-cut tests on Spansion NOR flash. Some problems -were found, but they were fixed and the board survived 10000 power-cuts after -this. Please, see related discussions at the -MTD mailing list. The thread has -"UBIFS Corrupt during power failure" subject. The beginning of the thread -may be found -here, -then it continues -here, -and then continues -here, -and -here, -and -here. -
- - -UBIFS journal is very different to ext3 journal. In case of ext3, the