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