UBIFS synchronisation questions about file create/delete

Adrian Hunter adrian.hunter at nokia.com
Fri Nov 27 08:44:57 EST 2009


Ronny Dierckx wrote:
>> No it is not normal behaviour.
>>
>> 10 minutes is long enough for everything to be written and flushed.  The
> file
>> should be completely intact.
>>
>> No UBIFS operations which change directory entries are not entirely
>> synchronous.  There is a NAND-page-sized buffer which must be flushed.
>> It is flushed every 5 seconds or so.  Otherwise you must do some kind of
>> sync.
>>
>> I can only guess that that version of UBIFS is somehow broken.
> 
> Hi Adrian,
> 
> I tried some different versions from
> git://git.infradead.org/~dedekind/ubifs-v2.6.27.git
> and the problem is caused by commit " UBIFS: fix 64-bit divisions in debug
> print " 
> 9d016dc4b3006ef3493b21442394028614e26da5 :
> 
> dbg_io("set timer for jhead %d, %llu millisecs", wbuf->jhead,
> -       ktime_to_ns(wbuf->hardlimit)/USEC_PER_SEC);
> -       hrtimer_start(&wbuf->timer, wbuf->hardlimit, HRTIMER_MODE_REL);
> +       div_u64(ktime_to_ns(wbuf->hardlimit), USEC_PER_SEC)); 
> }
> 
> As you can see the timer is no longer started. Could you please fix this ?

It is Artem's git tree.

Artem, can you look at this?



More information about the linux-mtd mailing list