]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
vfs: Fase 3 - filesystem type registry and superblock
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 16:27:57 +0000 (13:27 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 25 May 2026 16:27:57 +0000 (13:27 -0300)
commite26de6e6fd45d17abad646e6134b727105bf1010
tree894cc8bb2c03505b7eb16cfec21aca5033637ea2
parent923ccd9d9276fa8fc53865a62810e34606a8a36c
vfs: Fase 3 - filesystem type registry and superblock

- Added vfs_fs_type_t structure with name, flags, and mount function
- Implemented vfs_fs_type_register and vfs_fs_type_find functions
- Registered FAT and ext2 filesystem types in init_start
- Refactored init_mount_fs to use vfs_fs_type_find instead of hardcoded strcmp
- Added vfs_superblock_t structure with fstype, bdev, lba, and private_data
- Added sb field to vfs_mount struct
- Updated vfs_mount_nolock_full to accept and store vfs_superblock_t*
- Updated all callers to pass NULL for sb parameter (virtual FS don't use it yet)
include/fs.h
src/kernel/fs.c
src/kernel/init.c
src/kernel/syscall.c