UBIFS sync question

Bruce_Leonard at selinc.com Bruce_Leonard at selinc.com
Tue Sep 30 18:28:10 EDT 2008


We've run into a side effect that we think is probably a design choice in 
UBIFS, but we want to make sure before we start trying to troubleshoot a 
"bug".  What we do is open an existing  file in a UBIFS formated UBI 
volume on a NAND flash, add a few lines to it, close the file, then 
WITHOUT un-mounting the file system, reboot the box (simulating a power 
outage).  When the box reboots and we look at the file, it's zero length 
and has no contents.  I suspect it's because UBIFS does less frequent 
syncs than say ext2 for performance reasons, and we're just losing the 
contents of the file because there's no sync before the reboot.

Is this correct or do we need to start digging for something broken?



More information about the linux-mtd mailing list