I compile the yaffs to kernel and use MTD and Yffs2 ECC, create mtd7 and mtdblock7, use flash_eraseall /dev/mtd7 £¬and mount:
-------------------------------------------------
root@MySvr:~# mount -t yaffs2 /dev/mtdblock7 /mnt/nand/
yaffs: dev is 32505863 name is "mtdblock7"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.7, "mtdblock7"
root@MySvr:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock3 13952 12908 1044 93% /
/dev/mtdblock5 499 13 461 3% /mnt/config
/dev/mtdblock7 131072 1152 129920 1% /mnt/nand
--------------------------------------------------------------------
Enter /mnt/nand/,i can create file and data using FTP trans£¬£º
ftp>mput linux-2.6.10.tar.bz2
227 Entering Passive Mode (192,168,99,232,172,218)
150 Ok to send data.
226 File receive OK.
38710411 bytes sent in 1.5e+02 seconds (2.5e+02 Kbytes/s)

its so slow £¬so i stoped trans linux-2.6.14.tar.bz2
 
root@StarWave:/mnt/nand# ls
linux-2.6.10.tar.bz2 linux-2.6.14.tar.bz2 lost+found
root@StarWave:/mnt/nand# rm linux-2.6.14.tar.bz2 
root@StarWave:/mnt/nand# ls
linux-2.6.10.tar.bz2 lost+found
root@MySvr:/mnt/nand# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock3 13952 12908 1044 93% /
/dev/mtdblock5 499 13 461 3% /mnt/config
/dev/mtdblock7 131072 38960 92112 30% /mnt/nand
---------------------------------------------------------------------
Here is the problem£º
root@MySvr:/mnt/nand# mkdir temp_dir
root@MySvr:/mnt/nand# rm temp_dir/ -r
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6814
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6741
==>> yaffs bug: fs/yaffs2/yaffs_guts.c 6741

------------------------------------------------------------------------
root@MySvr:/mnt# umount nand
save exit: isCheckpointed 1
root@MySvr:/mnt# mount -t yaffs2 /dev/mtdblock7 /mnt/nand/
yaffs: dev is 32505863 name is "mtdblock7"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.7, "mtdblock7"
root@MySvr:/mnt# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock3 13952 12908 1044 93% /
/dev/mtdblock5 499 13 461 3% /mnt/config
/dev/mtdblock7 131072 48896 82176 37% /mnt/nand
Used space is changed from 30%to the 37%£¬this 7% should be part of linux-2.6.14.tar.bz2 which means£¬file is deleted, but the block is not mark as can be used.
 
root@StarWave:/mnt/nand# ls
lost+found
not even one file in the lost+found
Is that a bug?
 
 
Baiyi