Re: [Yaffs] minimun partition size require to mount the YAFF…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Murali N
Date:  
To: Charles Manning
CC: yaffs
Subject: Re: [Yaffs] minimun partition size require to mount the YAFFS!!!
On Mon, Jan 31, 2011 at 8:29 AM, Charles Manning
<> wrote:
> On Saturday 29 January 2011 18:06:20 Murali N wrote:
>> Hi,
>> Can anybody tell me what is the minimum partition size that would
>> require YAFFS2 to be mounted?
>> On my system i am seeing YAFFS2 mount is failing for a given partition
>> of size 1MB ( 8 blocks ie 8 * 128K ).
>>
>> 7328              dev->internalEndBlock <= (dev->internalStartBlock +
>> dev->nReservedBlocks + 2)) {   /* otherwise it is too        small */
>> 7329                 T(YAFFS_TRACE_ALWAYS,
>> 7330                   (TSTR
>> 7331                    ("yaffs: NAND geometry problems: chunk size
>> %d, type is yaffs%s, inbandTags %d "
>> 7332                     TENDSTR), dev->totalBytesPerChunk,
>> dev->isYaffs2 ? "2" : "", dev->inbandTags));
>> 7333                 return YAFFS_FAIL;
>> 7334         }
>
> yaffs reserves some blocks for two purposes:
> 1) If blocks go bad then we need to have some spare to handle a problem.
> 2) garbage collection etc needs at least one spare block to work with.
>
> You can change the reserved blocks to, say, 2 and yaffs should then work on 8
> blocks. You should be aware though that yaffs will not allow you to store
> files in all of that space.
>
> -- Charles
>
>
>
>


Is reserved blocks are useful to store per partition useful
information or per file information?
Now in my case it is set to (nReservedBlocks) 5. As you mentioned if i
change this value to
per say '2' can't use this partition to store the regular files?
If it is 'NO' then how do i set the nReservedBlocks to '2' only to
applicable to a given partition and reset all will be with a default
setting(5)?

--
Regards,
Murali N