nuttx/fs/littlefs
YAMAMOTO Takashi b59373b270 littlefs_open: sync the file only when O_TRUNC is specified
Because sync is a rather expensive operation.

While I'm here, improve the comment after the recent discussion
in https://github.com/apache/nuttx/pull/2913.

IMHO, we should not perform the sync even for O_TRUNC.
But I'm not going to propose the change for now.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
2025-04-10 14:38:18 +08:00
..
.gitignore
CMakeLists.txt littlefs/cmake: fix build issue 2025-02-11 23:22:07 +08:00
Kconfig littlefs: Use LFS_DEFINES if available 2024-12-13 18:22:30 +08:00
lfs_getpath.patch
lfs_getsetattr.patch fs/littlefs: revert fstat and use lfs_file_attr function 2024-10-11 15:46:02 +08:00
lfs_nuttx_defines.h littlefs: Use LFS_DEFINES if available 2024-12-13 18:22:30 +08:00
lfs_util.patch fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
lfs_vfs.c littlefs_open: sync the file only when O_TRUNC is specified 2025-04-10 14:38:18 +08:00
lfs_vfs.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Make.defs fs/littlefs/Make.defs: fix a littlefs unpack regression 2024-12-16 17:09:16 +08:00