zephyr/subsys/fs/ext2
Chen Shu 5a5f05ba4e fs: ext2: Fix nbytes_to_read calculation in ext2_inode_read()
Fix incorrect nbytes_to_read calculation in ext2_inode_read() function.
Previously nbytes_to_read was decremented by read value which caused
incorrect calculation of bytes to read in subsequent iterations.
Now nbytes_to_read is decremented by to_read value which represents
the actual number of bytes read in current iteration.

This fixes potential data corruption issues when reading files from
ext2 filesystem.

Signed-off-by: Chen Shu <751541594@qq.com>
2025-01-15 11:51:10 +01:00
..
CMakeLists.txt
ext2_bitmap.c fs: ext2: fix blocks and inodes handling 2023-08-03 12:22:01 -04:00
ext2_bitmap.h fs: ext2: fix blocks and inodes handling 2023-08-03 12:22:01 -04:00
ext2_disk_access.c fs: ext2: impl fs_sync 2023-08-03 12:22:01 -04:00
ext2_diskops.c fs: ext2: Fix removing indirect blocks 2024-04-19 10:13:09 +02:00
ext2_diskops.h fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2_format.c fs: ext2: Fix calculating fs_memory in ext2_format 2024-04-11 09:07:43 +02:00
ext2_impl.c fs: ext2: Fix nbytes_to_read calculation in ext2_inode_read() 2025-01-15 11:51:10 +01:00
ext2_impl.h fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2_ops.c fs: ext2: add alignment for superblock 2024-09-30 17:10:56 +01:00
ext2_struct.h fs: ext2: Use disk structs to access data on disk 2023-08-03 12:22:01 -04:00
ext2.h fs: ext2: create correct file system in mkfs 2023-08-03 12:22:01 -04:00
Kconfig fs: ext2: add alignment for superblock 2024-09-30 17:10:56 +01:00