Hi, I already implemented a file system in NAND chip on my board, every thing works correct, except one thing:
at start up, I use fsck() function to check the disk before system run, and when I use following code :
fsck ( diskname, &fsck_stat, FSCK_FIXPROBLEMS | FSCK_FREELOSTCLUSTERS | FSCK_FREEFILESWITHERRORS | FSCK_FREESUBDIRSWITHERRORS);
it return result 0, and report no error, but all files that large 32768 bytes(about, not actual test) is deleted, and only directory is left,
and then , when I use following code :
fsck ( diskname, &fsck_stat, FSCK_FIXPROBLEMS);
all files that large 32768 bytes is truncated to 32768 bytes, also report no error.
if I not use fsck () to check disk at start up, read back file, compare to orginal, it's correct, and file write also have no problem.
It;s strange , is it because it's a free version? I am using version RFTS 1_10_01_31.
Is that somebody have any sense about it? thanks.