On Tuesday 27 March 2007 03:07, goog long wrote:
> I see chunks are pruned when a filesize is smaller. I wonder why no
> additional chunks are allocated when a filesize is increased.
There is no need to add chunks because these have no data. They are just
"holes" that will read back as zero.
When data is written to these areas then they are allocated.
>
> Nam
>
> Charles Manning <manningc2@actrix.gen.nz> 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
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>
>
> ---------------------------------
> Sucker-punch spam with award-winning protection.
> Try the free Yahoo! Mail Beta.