]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
vfs: refactor FAT and EXT2 to support multiple independent mounts
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 17:13:38 +0000 (14:13 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 25 May 2026 17:13:38 +0000 (14:13 -0300)
commit1f46f9e1ce1d3534d5a94cfdc0fab0229abc34a9
tree308f12c5d8a003adebc8fe90ed90a99ee62a93ee
parente26de6e6fd45d17abad646e6134b727105bf1010
vfs: refactor FAT and EXT2 to support multiple independent mounts

- Replace global g_fat/g_ext2 singletons with per-mount state structures
- Add struct fat_mount and struct ext2_mount for filesystem-specific state
- Update all FAT/EXT2 functions to accept mount pointer parameter
- Refactor fat_mount/ext2_mount to allocate per-mount structures dynamically
- Add fat_umount/ext2_umount functions to free allocated resources
- Integrate filesystem-specific umount calls in vfs_umount_nolock
- Remove global state dependencies to enable multiple independent mounts
- Fix duplicate enum fat_type definition in fat.c
- Test: smoke test 119/119 PASS
include/ext2.h
include/fat.h
src/kernel/ext2.c
src/kernel/fat.c
src/kernel/fs.c