]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
docs: add TODO for VFS umount root check (Item 11)
authorTulio A M Mendes <[email protected]>
Tue, 26 May 2026 03:44:08 +0000 (00:44 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commitba4242bc3f389a532210b09fe13a730d78bd428e
treeefed8b112f484e4e01d150195291fdfd1b534687
parent3492da2b0609781e878cc6e96f922a98f8e902ad
docs: add TODO for VFS umount root check (Item 11)

Check of root directory in umount is pending due to stability issues.
Two attempts failed:
- char root[128] caused memory corruption (alignment issues)
- fs_node_t* root_fs_node caused massive instability (55/125 tests)

Check of cwd is fully implemented and validated (124/124 tests passing).
Documented future implementation options:
- Per-process mount namespaces (most robust, 5-7 days)
- Fix alignment issues (medium, 2-3 days)
- Debug fs_node_t* approach (high, 3-4 days)

Recommendation: Keep cwd check only, implement root check when
chroot/pivot_root is actually needed or when implementing containers.
docs/VFS_UMOUNT_ROOT_CHECK_TODO.md [new file with mode: 0644]