ext3 has 3 journaling options: journal, ordered, and writeback. According to the wikipedia entry, these range from least risky to most risky for crash recovery. For some reason, Android’s version of Linux only supports the latter two options, and defaults to writeback. (I’m running Froyo)
Is there a way to add support for journal mode? I’d like to do this on the /data partition, which is ext3, and also where most of the file writes happen. My device doesn’t have a battery, so I need to make sure it’s crash proof when someone disconnects power.
In case anyone is interested, the Linux options are defined in kernel/fs/ext3/Kconfig. The specific option is EXT3_DEFAULTS_TO_ORDERED.
The solution was to add the following to kernel/fs/ext3/Kconfig, and rebuild the kernel with EXT3_DEFAULTS_TO_JOURNAL.