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 fs/inode: remove all unnecessary check for filep/inode 2023-08-29 09:47:11 +08:00
binfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
cromfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
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 fs: procfs add poll support 2023-12-26 19:23:13 -08:00
inode fs/procfs: refine file backtrace 2024-06-30 17:30:42 +08:00
littlefs littlefs/Make.defs:Add get path temp patch 2024-02-21 06:15:39 -08:00
mmap fs/mmap: enable parameter checks always 2024-03-25 20:39:24 +08:00
mount fs/mount: harden nx_mount logic 2024-03-12 19:44:48 +08:00
mqueue poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
nfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
nxffs stm32h7/linum-stm32h753bi: Add support to littlefs and nxffs with flash mem. via quadspi 2024-04-15 13:24:55 +08:00
partition fs: partition: fs_mbr: fix for MBR block count calculation. 2024-01-14 01:29:24 -08:00
procfs fs/procfs: refine file backtrace 2024-06-30 17:30:42 +08:00
romfs fs/romfs: Move rn_child/rn_count before rn_namesize 2024-01-20 09:27:50 -03:00
rpmsgfs rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
semaphore sem_open: return error code, sem returned by parameter 2024-06-06 02:40:50 +08:00
shm fs/shmfs: Fix stat() system call for shmfs object 2024-02-02 09:12:18 -08:00
smartfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
socket
spiffs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
tmpfs tmpfs:Add ioctl access path function 2024-04-24 09:46:16 +08:00
unionfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
userfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
vfs fs: tweak backtrace for file open 2024-06-30 17:30:42 +08:00
zipfs fs: procfs add poll support 2023-12-26 19:23:13 -08:00
CMakeLists.txt
fs_initialize.c fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
Kconfig fs_lock:Implementing file locks 2024-02-21 13:29:36 -03:00
Makefile fs:support zipfs,can mount zipfile 2023-09-27 01:06:04 +08:00