[Yaffs] Re: checkpoint question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wookey
Date:  
To: yaffs
Subject: [Yaffs] Re: checkpoint question
On 06-09-15 16:23 +0200, Johann Kok (JP) wrote:
>
> Hi all,
> 1) If I understand checkpointing correctly and I disable checkpointing
> the only penalty I will pay is bootup time, right?


Correct.

> 2) I will also get an added block or two to use for data, right?


Correct. Exactly how much space checkpointing uses depends on the size
of your filesystem.

> 3) How can I disable checkpointing?


You could originally do this (quoting Charles:)
by setting the checkpoint and main areas to overlap. eg:

         dev->checkpointStartBlock = 0;
     dev->checkpointEndBlock = 0;
     dev->startBlock = 0;
         dev->endBlock = nBlocks - 1;


However then it got updated to chop of a chunk by itself for use.

So now you set
        
nCheckpointReservedBlocks to 0

for the yaffs device in question. (see yaffs_guts.h)



Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/                 play: http://wookware.org/