File System ​
One-to-many virtualization ​
Read and write the disk ​
Read and write an inode ​
File, directory and mkfs
​
shell
[INFO] Load ino=0, 34 bytes
[INFO] Load ino=1, 48 bytes
[INFO] Load ino=2, 26 bytes
[INFO] Load ino=3, 15 bytes
[INFO] Load ino=4, 15 bytes
[INFO] Load ino=5, 258 bytes
[INFO] Load ino=7, pwd.elf: 10168 bytes
[INFO] Load ino=8, cat.elf: 15628 bytes
[INFO] Load ino=9, clock.elf: 10240 bytes
[INFO] Load ino=10, udp_hello.elf: 14684 bytes
[INFO] Load ino=11, cd.elf: 15672 bytes
[INFO] Load ino=12, crash1.elf: 16772 bytes
[INFO] Load ino=13, crash2.elf: 10336 bytes
[INFO] Load ino=14, ls.elf: 10432 bytes
[INFO] Load ino=15, echo.elf: 10144 bytes
[INFO] Load ino=6, ./ 6 ../ 0 pwd 7 cat 8 clock 9 udp_hello 10 cd 11 crash1 12 crash2 13 ls 14 echo 15
A naive file system ​
Explain library/file/file0.c
.