[Yaffs] An observation about "useHeaderFileSize" !
Charles Manning
manningc2@actrix.gen.nz
Fri, 4 Feb 2005 13:32:10 +1300
The useHeaderFileSize option is only useful for YAFFS1.
YAFFS2 needs to use this otherwise various things break.
For this reason, yaffs_GutsInitialise forces this on for YAFFS2 in the th=
e=20
following lines:
if(dev->isYaffs2)=20
{
dev->useHeaderFileSize =3D 1;
}
Defeat this and YAFFS2 will break.
On Friday 04 February 2005 01:08, Abhishek Bhattacharya wrote:
> Hello Yaffs ers and Charles
>=20
> I want to report an observation I had when testing Yaffs2 direct
> interface. In yaffs2 we have the option of "useHeaderFileSize".
> Now in yaffs_Scan() , after we scan all blocks, we check if "yaffs2"
> option is enabled or not.
>=20
> If yaffs2 is enabled we make dev->useHeaderFileSize =3D 1. Upon enablin=
g
> this, the expected result would be , that object
> would get the file size from object header, and not from scanned file
> size.
>=20
> Now when we do dumpDir(const char* path), my observation was that , it
> shows all the files , but sizes are shown as 0.
>=20
> At this point , I tried to make dev->useHeaderFileSize =3D 0. So now , =
we
> directly assign the object's scanned file size
> to object's file size and VOILA!!! Everything seems to work fine. This
> time dumpDir(const char* path) returns all the files
> with there respective sizes!!!
>=20
> Please let me know if you have encountered any such issues!
>=20
> Thanks
>=20
> Abhishek
>=20
>
>
> ***********************************************************************=
****
>************************************************************************=
****
>***
>
> This email message is for the sole use of the intended recipient(s)and =
may
> contain CONFIDENTIAL and PRIVILEGED information. LG Soft India will not=
be
> responsible for any viruses or defects or any forwarded attachments
> emanating either from within LG Soft India or outside. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not t=
he
> intended recipient, please contact the sender By reply email and destro=
y
> all copies of the original message.
>
> ***********************************************************************=
****
>************************************************************************=
****
>***