nuttx/fs
Windrow14 479c393291 fs/fat/fs_fat32.[c|h]: fix fseek bug when file size is multiple of cluster size
Unbinding `ff_currentcluster` and `f_pos`:
1. Added `ff_pos` in `struct fat_file_s`.
2. Added function `fat_zero_cluster` for doing zeroing for gap
   between EOF and new position beyond EOF.
3. Added function `fat_get_sectors` for getting the sector where
   `f_pos` is located, allocting new cluster when `f_pos` is beyond
   EOF.
4. Modify function `fat_read`, and `fat_write` with above functions.
5. Remove redundant logics in `fat_seek` since now new cluster is
   allocated when writing instead of seeking.

Signed-off-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Jacky Cao <Jacky.Cao@sony.com>
Tested-by: Yinzhe Wu <Yinzhe.Wu@sony.com>
2024-07-06 19:00:01 +08:00
..
aio
binfs
cromfs
driver driver: add note when driver registers 2024-06-21 22:43:06 +08:00
fat fs/fat/fs_fat32.[c|h]: fix fseek bug when file size is multiple of cluster size 2024-07-06 19:00:01 +08:00
hostfs
inode fs/procfs: refine file backtrace 2024-06-30 17:30:42 +08:00
littlefs
mmap fs/mmap: enable parameter checks always 2024-03-25 20:39:24 +08:00
mount
mqueue
nfs
nxffs stm32h7/linum-stm32h753bi: Add support to littlefs and nxffs with flash mem. via quadspi 2024-04-15 13:24:55 +08:00
partition
procfs fs/procfs: refine file backtrace 2024-06-30 17:30:42 +08:00
romfs
rpmsgfs
semaphore sem_open: return error code, sem returned by parameter 2024-06-06 02:40:50 +08:00
shm
smartfs
socket
spiffs
tmpfs tmpfs:Add ioctl access path function 2024-04-24 09:46:16 +08:00
unionfs
userfs
vfs fs: tweak backtrace for file open 2024-06-30 17:30:42 +08:00
zipfs
CMakeLists.txt
fs_initialize.c
Kconfig
Makefile