Hi,
I met a problem that, I'm trying to write a big file into my flash. Actually I write the file in many rounds, which means via many write() calls with each time a partial piece. After all the write() returned and the returned length is valid, I reboot my device immediately. But after rebooting, I found the file written in flash is not complete, its size is smaller than that I wrote. I was wondering whether the write() has returned but does not mean the real buffer is written done. So the reboot would cause the file imcomplete. Is this correct? Actually I tried with system call "sync" before reboot, but fail. Can anyone help me?
Thanks sarick