[Yaffs] [Yaffs-archive] Re: maybe I found a bug?
Tommy
tommy@everfocus.com.cn
Fri, 5 Dec 2003 09:28:53 +0800
Hi
Your action is so quickly! I have recieved your mail yesterday, and t=
ry=20
it, and have a same problem as you said. But I'm a new bie, maybe I can d=
o=20
nothing for you. I just be very happy to receive first mail from this mai=
l=20
list since 2 week ago.
I will read the source code this weekend, I hope i can do something f=
or=20
us. Good Lucky!
I have found some problem before:
********************************
When i first put the yaffs in my uClinux-dist-20030909, I found somet=
hing=20
error in the defining of yaffsObjectHeader
typedef struct
{
yaffs_ObjectType type;
int parentObjectId;
__u16 sum__NoLongerUsed;
char name[YAFFS_MAX_NAME_LENGTH + 1];
__u32 st_mode;
=2E..=20
Because of byte align, a 2 bytes hole was inserted before st_mode whe=
n=20
kernel make. but there are no problem in user application.
I have change it in my code, add two bytes space after sum_NoLongerUs=
ed.
and everything is ok.
*******************************
Another problem is in yaffs tools, there are many problem when make i=
mage=20
file, and I have change it.
Are these really bugs? Did you found and how to handle them?
> Hi, All,
> We checked the source codes of YAFFS and found that problem: The
> unlink of regular file is different from special file(including socket,
> device and directory). When unlinked, YAFFS delete special file from YA=
FFS=20
> object hash table, but the inode->i_count remains unchanged. We think t=
hat
> yaffs should not delete the special file when the inode->i_count is not=
0,
> because deleting from hash table means freeing YAFFS object. Currently =
we
> avoid this by mount any directories which will create special file and
> immediately unlink in tmpfs.
>
> We think this bug(if this is a bug) is easy to fix. Anyone would do=
, or
> we do it?
>
> Regards,
> Russell Greece , Timmy Lee
>
> ----- Original Message -----
> From: <guo@unication.com.cn>
> To: <yaffs@toby-churchill.org>
> Sent: Thursday, December 04, 2003 2:28 PM
> Subject: maybe I found a bug?
>
> > this email is a copy of my last one, the program is
> > attached.=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=
=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=
=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF
> >=FF=D3=86+&j)b=9E=09b=B2=D8=AC=86=8B-y=D6=F2N=86=F2=1B=ABr=A5=96=8A^=9E=
=CA=B7=AB{=FC0=C3=FBho/=DC=86=EA=DC=86)e=FE=8A=E0=FF=F2=99=A8=A5=8Ax%=8A=CB=
fzf=DE=AE=C8b=A6+'=A2Z
> >'=81=EA=F0j{^w*.q=A9=EBzj/{*.=AE=C7=A5}=FA=E8=9A=D8^=96+-o+=9D=D8=A7=81=
=A9=DE=99=A8=A5=B6=8C=9A}=FB=FF=AD=EA=AEz=CB=FF=B6=86=F2=FD=C8n=AD=C8b=96=
_=E8=AE"=B6=1Baz=D7=B1
> >=B7=FB=A7=B2=E6=ECr=B8=9B{=FF=F0=8A=D8h=BA=DBaz=AB=A8=B5=EB=FFj=CBaz=CB=
=9B=8D=E7-
---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe"
(without the quotes) as the subject.