]> 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]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commit46bf75187b1b48d8d30cfbc2d88a7ff0f8ff0572
treefc3991c5bfa9d35a9158b3d2ddfcccd73718e3c2
parent8a3b0b4fa6ec52e1dce93f01288317a2aaf565c2
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