Partially written block detected
yaffs文件系统的Partially written block detected信息
2011-01-27 19:27
对文件系统进行一系列的操作之后,直接断电,然后重新启动后,挂载文件系统时可能会出现如下提示信息:
yaffs: dev is 32505863 name is "mtdblock7"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.7, "mtdblock7"
Partially written block 13 detected
Partially written block 13 detected
Partially written block 13 detected
Partially written block 13 detected
yaffs_read_super: isCheckpointed 0
Please press Enter to activate this console. ls
[root@localhost /]#
这种提示信息是正常的,Partially written block 在正常使用时,文件系统的垃圾收集程序将会处理。
可以屏蔽这个信息,或者仅在YAFFS_TRACE_SCAN的时候显示这个信息,修改yaffs_guts.c文件的6668行,将
T(YAFFS_TRACE_ALWAYS,
(TSTR("Partially written block %d detected" TENDSTR),
blk));
改为:
T(YAFFS_TRACE_SCAN,
(TSTR("Partially written block %d detected" TENDSTR),
blk));
或者,让系统每次通过poweroff关机,然后调用sync命令,将yaffs数据完善回去
|