Re: [Yaffs] Direct Interface, files contain zero when mount…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Stéphane Lesage
Date:  
To: yaffs
Subject: Re: [Yaffs] Direct Interface, files contain zero when mounting without checkpoint
Le 01/06/2012 11:33, Stéphane Lesage a écrit :
> but I still have the problem here on the last step.
>
> I pretty sure my low-level NAND functions (or file simulation) work
> correctly, so this must be a bad configuration.


I found the problem: my loff_t type is 32 bits...
which leeds to a wrong initial shrink size when scanning, because of:

the_obj->variant.file_variant.shrink_size=yaffs_max_file_size(dev);

loff_tyaffs_max_file_size(structyaffs_dev*dev)

{

    return  ((loff_t)  YAFFS_MAX_CHUNK_ID)  *  dev->data_bytes_per_chunk;


}

BTW, there is a define for the same thing in yaffsfs.h:
#defineYAFFS_MAX_FILE_SIZE(0x800000000LL-1)

It is possible to add support for 32 bits loff_t ?

Thanks in Advance.