]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
vfs: remove g_fat_root global, allocate root per mount (P3.1, P3.2, P3.3)
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 21:05:48 +0000 (18:05 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commit99f5fa66e7ec20d64741daaa11a591e463e41e70
treeee7fa2b5143fb6a3747efd1cf99bbc602d901f85
parentde8c3c6a02b4e4dd2986c26092cab52ab6d54c45
vfs: remove g_fat_root global, allocate root per mount (P3.1, P3.2, P3.3)

- Remove g_fat_root global from fat.c
- Allocate root node dynamically in fat_mount() and ext2_mount()
- Add root field to vfs_superblock_t for cleanup on umount
- Update fat_kill_sb and ext2_kill_sb to free root node
- Remove g_fat_root check from fat_close_impl
include/fs.h
src/kernel/ext2.c
src/kernel/fat.c
src/kernel/init.c