Continuing Create File 1/2 | 32 Bit OS Dev (in C)

Channel:
Subscribers:
5,840
Published on ● Video Link: https://www.youtube.com/watch?v=ak1OlGS1Ewk



Duration: 1:14:42
253 views
11


Continuing to flesh out the fs_create_file() logic and adding some more helper functions.

OS Dev playlist:
https://www.youtube.com/playlist?list=PLT7NbkyNWaqajsw8Xh7SP9KJwjfpP8TNX

Git Repos:
Sourcehut: https://git.sr.ht/~queso_fuego/quesos
Github mirror: https://github.com/queso-fuego/amateuros

Repo state before open() syscall (this will be updated when open() and creating new files is mostly done):
git clone -n https://github.com/queso-fuego/amateuros
cd amateuros
git checkout 4255fe96f1efb69498eec2a55417dd3eca3eb2de

Join the Community Discord: https://discord.gg/yKm4T89QFn

Contact:
email: fuegoqueso@gmail.com
twitter: @Queso_Fuego
twitch: https://www.twitch.tv/queso_fuego

Next video:
- Mostly finishing fs_create_file() and starting a "print directory" function

- Let me know if there's anything specific you'd like to see!

Outline:
0:00 fix/refactor parent_inode_from_path()
4:56 inode_from_id()
10:47 find first free bit in disk blocks
32:15 update superblock
40:52 set bit in disk block
55:09 continue fs_create_file()
1:11:09 wrap up, fix compile errors

Questions about setup/software/etc.?
Check the FAQ: https://queso_fuego.srht.site/about.html

Music credits:
"Acid Trumpet" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
http://creativecommons.org/licenses/by/4.0/

#osdev #filesystem #inodes







Tags:
queso fuego
create file
file systems
c programming
kernel dev
os dev
low level
bad programming
boring voice
bitmaps