refactor: add a simple ramfs for rootfs. Twifs should have more specific job in future.
authorMinep <zelong56@gmail.com>
Fri, 19 Aug 2022 18:08:00 +0000 (19:08 +0100)
committerMinep <zelong56@gmail.com>
Fri, 19 Aug 2022 18:08:00 +0000 (19:08 +0100)
commita7384053efe345d199440720b437a28e91058ff3
tree2f82b99f5aa1d732ad1276a421d9bfbd12e2b354
parentc4d08ac5260bb26db10bcfd9dc6fd2db60efebe9
refactor: add a simple ramfs for rootfs. Twifs should have more specific job in future.
refactor: inode creation, inode cache lookup and it's hashing are now separated.
refactor: reduce the v_inode and v_file size due to ops invariants.
chores: minor refactoring and fixings.
15 files changed:
lunaix-os/includes/lunaix/fs.h
lunaix-os/includes/lunaix/fs/ramfs.h [new file with mode: 0644]
lunaix-os/includes/lunaix/spike.h
lunaix-os/kernel/demos/dir_read.c
lunaix-os/kernel/fs/defaults.c [new file with mode: 0644]
lunaix-os/kernel/fs/fs_setup.c [new file with mode: 0644]
lunaix-os/kernel/fs/fsm.c
lunaix-os/kernel/fs/mount.c
lunaix-os/kernel/fs/pcache.c
lunaix-os/kernel/fs/ramfs/ramfs.c [new file with mode: 0644]
lunaix-os/kernel/fs/twifs/twifs.c
lunaix-os/kernel/fs/vfs.c
lunaix-os/kernel/k_init.c
lunaix-os/kernel/proc0.c
lunaix-os/kernel/spike.c