foundry
Foundry OS: the operating system built on the Rustbelt kernel
| author | Tyler Fowler <tyler@localhost> | 2026-10-30 01:52:32 -0700 |
|---|---|---|
| commit | fa90f1679d9d547f74022a30a776d99cc7616835 | |
| parent | 15e5ecd0fb93bedd7c5fe1d04cda48d967315af2 | |
| tree | browse files at this commit | |
Stage 8: ext2 driver (0.8.0) Hand-written ext2 (src/fs/ext2.rs, no crate) plugged into the VFS: superblock, group descriptors, bitmaps, inodes with direct/single/ double/triple indirect blocks, directories with file types, fast and slow symlinks; 1 KiB and 4 KiB blocks, revision 0 and 1. Writes: create, write/append, truncate, mkdir, unlink, rmdir with bitmap allocation and free counts in the superblock and group descriptors. - VFS: symlink following (ELOOP after 8), lookup_nofollow, readlink; Stat gains mode; new readlink syscall (89); mount_disks probes ext2 (magic 0xEF53) before FAT and mounts unpartitioned disks - build.rs: mke2fs -d images from disk2/ (big.txt, sparse.bin, symlinks): ext2.img (raw, vdb -> /mnt/disk1 = C:), plus 4K-block and revision-0 images for tests - ls -l shows permissions and symlink targets - tests/ext2.rs (11 tests); scripts/ext2-check.sh runs Rustbelt on writable copies, then host e2fsck -fn and debugfs - self-test and boot.png use drive C:; README ext2 section
| M | scripts/selftest.sh | +10 -0 |
1 file changed, 10 insertions, 0 deletions
@@ -24,6 +24,16 @@ run --trace cat B:/notes/todo.txt start sleep 1 jobs wait+cd C:+ls+cat hello-link+grep "line 12345" big.txt+cp B:/notes/todo.txt C:/todo.txt+cat C:/todo.txt | grep -i ext2+md C:/made-here+echo written by Rustbelt > C:/made-here/note.txt+type C:/made-here/note.txt+ls -l C:/ run evil nosuchprogram cd Q: