[Yaffs] An observation about "useHeaderFileSize" !

Abhishek Bhattacharya abhishek.b@lgsoftindia.com
Thu, 3 Feb 2005 17:38:09 +0530


This is a multi-part message in MIME format.

------_=_NextPart_001_01C509E9.076A15AA
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Hello Yaffs ers and Charles
=0D
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.
=0D
If yaffs2 is enabled we make dev->useHeaderFileSize =3D 1. Upon enabling
this, the expected result would be , that object=0D
would get the file size from object header, and not from scanned file
size.
=0D
Now when we do dumpDir(const char* path), my observation was that , it
shows all the files , but sizes are shown as 0.
=0D
At this point , I tried to make dev->useHeaderFileSize =3D 0. So now , we
directly assign the object's scanned file size=0D
to object's file size and VOILA!!! Everything seems to work fine. This
time dumpDir(const char* path) returns all the files=0D
with there respective sizes!!!
=0D
Please let me know if you have encountered any such issues!=0D
=0D
Thanks
=0D
Abhishek
=0D


***************************************************************************=
***************************************************************************=
****

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=0D
LG Soft India or outside. Any unauthorized review, use, disclosure or=
 distribution is prohibited. If you are not the intended=0D
recipient, please contact the sender By reply email and destroy all copies=
 of the original message.

***************************************************************************=
***************************************************************************=
****
------_=_NextPart_001_01C509E9.076A15AA
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>Hello=
 Yaffs ers and=0D
Charles</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>I want to=
 report an=0D
observation I had when testing Yaffs2 direct interface. In yaffs2 we have=
 the=0D
option of "useHeaderFileSize".</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>Now in=
 yaffs_Scan()=0D
, after we scan all blocks, we check if "yaffs2" option&nbsp;is enabled or=
=0D
not.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>If yaffs2=
 is enabled=0D
we make dev-&gt;useHeaderFileSize =3D 1.&nbsp;Upon enabling this, the=
 expected=0D
result would be , that object </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>would get=
 the file=0D
size from object header, and not from scanned file=
 size.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>Now when=
 we do=0D
dumpDir(const char* path), my observation was that , it shows all the files=
 ,=0D
but sizes are shown as 0.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>At this=
 point , I=0D
tried to make dev-&gt;useHeaderFileSize =3D 0. So now , we directly assign=
 the=0D
object's scanned file size </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>to=
 object's file=0D
size and VOILA!!! Everything seems to work fine. This time dumpDir(const=
 char*=0D
path) returns all the files </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>with=
 there=0D
respective sizes!!!</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D667585711-03022005>Please=
 let me know=0D
if you have encountered any such issues! </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005>Abhishek</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=0D
class=3D667585711-03022005></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

<table><tr><td bgcolor=3D#ffffff><font color=
=3D#000000>****************************************************************=
***************************************************************************=
***************<br><br>This email message is for the sole use of the=
 intended recipient(s)and may contain CONFIDENTIAL and PRIVILEGED=
 information.<br>LG Soft India will not be responsible for any viruses or=
 defects or any forwarded attachments emanating either from within <br>LG=
 Soft India or outside. Any unauthorized review, use, disclosure or=
 distribution is prohibited. If you are not the intended <br>recipient,=
 please contact the sender By reply email and destroy all copies of the=
 original=
 message.<br><br>**********************************************************=
***************************************************************************=
*********************<br></font></td></tr></table>
------_=_NextPart_001_01C509E9.076A15AA--