1.增加一些sync操作
This commit is contained in:
parent
85b8b3cc09
commit
1e594d48b8
|
@ -1482,7 +1482,7 @@ UINT8 sf_get_send_file_list(char *sendfileList, UINT8 *fileTotal)
|
||||||
printf("fileTotal=%d, fsize=%d\n", *fileTotal, fsize);
|
printf("fileTotal=%d, fsize=%d\n", *fileTotal, fsize);
|
||||||
fread(sendfileList, fsize, 1, fd);
|
fread(sendfileList, fsize, 1, fd);
|
||||||
fclose(fd);
|
fclose(fd);
|
||||||
|
system("sync");
|
||||||
oldFileKey = pPara->FileKey;
|
oldFileKey = pPara->FileKey;
|
||||||
printf("last send key:%d\n", oldFileKey);
|
printf("last send key:%d\n", oldFileKey);
|
||||||
//oldFileKey = 1000003; //for debug
|
//oldFileKey = 1000003; //for debug
|
||||||
|
|
4
code/application/source/sf_app/code/source/fileMng/sf_fileMng.c
Normal file → Executable file
4
code/application/source/sf_app/code/source/fileMng/sf_fileMng.c
Normal file → Executable file
|
@ -48,8 +48,8 @@ SINT32 sf_file_remove(SF_CHAR *fileName)
|
||||||
MLOGI("removing [%s]\n",fileName);
|
MLOGI("removing [%s]\n",fileName);
|
||||||
sprintf(cmdstring,"rm -rf %s",fileName);
|
sprintf(cmdstring,"rm -rf %s",fileName);
|
||||||
s32ret = system(cmdstring);
|
s32ret = system(cmdstring);
|
||||||
sync();
|
//sync();
|
||||||
|
system("sync");
|
||||||
if(s32ret != SF_SUCCESS)
|
if(s32ret != SF_SUCCESS)
|
||||||
{
|
{
|
||||||
//SF_MESSAGE_BUF_S stMessageBuf = {0};
|
//SF_MESSAGE_BUF_S stMessageBuf = {0};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user