Dm6446的ARM写SD卡,如果umount了SD卡后,数据是完整的,如果突然断电或者直接拔出SD卡,数据就会丢失,此问题有办法解决吗
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dm6446的ARM写SD卡,如果umount了SD卡后,数据是完整的,如果突然断电或者直接拔出SD卡,数据就会丢失,此问题有办法解决吗
不写卡时也不能拔掉卡,在umount之前拔卡就会丢很多数据,后来我每次fwrite了之后就先fflush一下,再fsync一下,这样的话丢数据就能少很多了