mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-17 07:05:31 +08:00
1 parent
89f40696ff
commit
b04076d8aa
1 file changed
+5
@@ -253,7 +253,12 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode)
|
||||
*/
|
||||
int _sys_ensure(FILEHANDLE fh)
|
||||
{
|
||||
#ifdef DFS_USING_POSIX
|
||||
return fsync(fh);
|
||||
#else
|
||||
LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS);
|
||||
return 0; /* error */
|
||||
#endif /* DFS_USING_POSIX */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user