I have a problem with the file system residing on the 4 GByte emmc memory. My program writes two log files, one at the end of the minute and one at the end of the hour. Sporadically the log file written at the hour mark has been found to be zero in size. The file exists as an entry in the directory but its size, which is normally in the order of tens of kbytes, is zero. The program is written in C and uses the normal open, write and read primitives. Can you give me some hints to solve this problem and make the file system reliable?
Best regards.