BugID:17920924:add support of fd_mgmt 1
#include "ramfs_api.h"
#include "ramfs_adapt.h"
#include "ramfs_types.h"
+#include "ulog/ulog.h"
#define MAX_RAMFS_FILE_NAME_BYTES 32
@@ -363,6 +364,13 @@ static int ramfs_vfs_rmdir(vfs_file_t *fp, const char *path)
return ramfs_rmdir(path);
}
+static int ramfs_vfs_sync(vfs_file_t *fp)
+{
+ LOGI(TAG, "sync is running !\n");
+
+ return 0;
+}
+
vfs_filesystem_ops_t ramfs_ops = {
.open = &ramfs_vfs_open,
.close = &ramfs_vfs_close,
@@ -370,7 +378,7 @@ vfs_filesystem_ops_t ramfs_ops = {
.write = &ramfs_vfs_write,
.access = &ramfs_vfs_access,
.lseek = &ramfs_vfs_lseek,
- .sync = NULL,
+ .sync = &ramfs_vfs_sync,
.stat = &ramfs_vfs_stat,
.fstat = &ramfs_vfs_fstat,
.statfs = &ramfs_vfs_statfs,
