Start over to clear my head

This commit is contained in:
Caleb Gardner
2025-05-16 05:55:40 -05:00
parent fc068fdbd9
commit 986f308c60
18 changed files with 221 additions and 699 deletions
+36
View File
@@ -0,0 +1,36 @@
pub const InodeRef = packed struct {
offset: u16,
block_start: u32,
_: u16,
};
pub const InodeType = enum(u16) {
dir,
file,
sym,
block,
char,
fifo,
sock,
ext_dir,
ext_file,
ext_sym,
ext_block,
ext_char,
ext_fifo,
ext_sock,
};
pub const InodeHeader = packed struct {
inode_type: InodeType,
perm: u16,
uid_idx: u16,
gid_idx: u16,
mod_time: u32,
num: u32,
};
pub const Inode = struct {
header: InodeHeader,
data: void, //TODO
};