Re: [Yaffs] Is it a bug of yaffs_ResizeFile() ?

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: goog long
Date:  
To: Charles Manning, yaffs
Subject: Re: [Yaffs] Is it a bug of yaffs_ResizeFile() ?
I see chunks are pruned when a filesize is smaller. I wonder why no additional chunks are allocated when a filesize is increased.

Nam

Charles Manning <> wrote: On Monday 12 March 2007 19:36, Charles Manning wrote:
> On Sunday 11 March 2007 05:32, falls huang wrote:
> > Hello all !
> >
> >    I use "dd of=/mnt/yaffs2/vfat.img bs=1024 seek=1800000 count=0" to
> > create a large file in yaffs2 quickly, but I found when I
> > umount/remount it , the filesize of vfat.img reduce to zero. I
> > searched the source of yaffs2 and I found it's the problem of
> > yaffs_ResizeFile() , so I wrote a simple patch. I don't know if the
> > patch is right , but anyway it worked well in my board.

>
> From a quick look, it does look like there is a bug here.
>
> I will confirm this and sort it out.


This is now fixed in cvs.

-- CHarles

_______________________________________________
yaffs mailing list

http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs



---------------------------------
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.