On Oct 14, 2009, at 1:04 PM, Allen Yang wrote:
The problem I have now is sometimes the XML files get corrupted when
board is powered down. The corrupt XML file size is 0 or only a portion
of the good file size.

Is JFFS2 supposed to be power down safe? Maybe I missed something when
using JFFS2.

(thread hijacking aside)

I had a number of problems with JFFS2 on my uClinux board; we ended up switching to UBIFS, which seems to handle powerdowns pretty well.

Filesystem notwithstanding, make sure that any changes you want committed are followed up with an fsync. If you don't fsync, then there's a chance that the write will be cached in memory and lost before being stored persistently. This is true for any filesystem.

-
allon
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to