I have MFS mounted on a 32MB RAM device.
When creating and writing files I get a strange error, always the same error for same test set.
Test case:
- Create a directory
- write 63 files of 1KB named "a:\ev0\pc0" to "a:\ev0\pc62"
- read back and verify
Behavior:
- No error messages when creating and writing files
- before writing file "pc62" all files are present and ok.
- After writing file "pc62", file "pc46" is missing, size of "pc62" is 0 (fwrite reported 1KB)
- when listing files "pc62" is listed in the place "pc46" used to be"
The test is repeatable, also when varying file/directory names".
When extending the test to write larger number of files, the problem gets worse.
Is there some limitation to the number of files or naming of files?
My only idea so far is that this is some error inside MFS causing corruption.
/Jon
Using MQX 4.1.2
解決済! 解決策の投稿を見る。
Hi Jon:
I think this issue is resolved in the latest MQX version, MQX4.2.0, with the MQX 4.2.0.2 patch, would you mind to check it?
Please download this package from the www.nxp.com/mqx
Regards
Daniel
Same test with 128 files:
file 46 and 111 goes missing
file 62 and 127 is size 0 and replaces 46 and 111 in file list
Same test with 256 files:
file 46,111, 176 goes missing
file 62, 127 and 192 is size 0 and replaces 46 and 111 in file list
Tried changing files size to 1500 bytes, same result.
Seems to be a pattern
Hi Jon:
I think this issue is resolved in the latest MQX version, MQX4.2.0, with the MQX 4.2.0.2 patch, would you mind to check it?
Please download this package from the www.nxp.com/mqx
Regards
Daniel
I will try your suggestion.
Do I need the 4.2.0.1 patch?
Jon
No, 4.2.0.1 patch is included in 4.2.0.2