Commit graph

25 commits

Author SHA1 Message Date
TheOddGarlic 030a5812f7 make stuff use the new VFS interface 2022-08-08 08:22:58 +03:00
TheOddGarlic 8e487e1697 VFS: fix little oopsie 2022-08-08 08:22:58 +03:00
TheOddGarlic 0cc1aaa64f VFS: path resolution 2022-08-08 08:22:55 +03:00
TheOddGarlic 960da43383 NOT ONE, but TWO deadlocks fixed! 2022-08-08 08:21:35 +03:00
TheOddGarlic 70342c5f46 VFS: move stuff into a VirtualFileSystem struct 2022-08-08 08:21:35 +03:00
TheOddGarlic b01ce11fab recursively walk directories 2022-08-08 08:21:35 +03:00
TheOddGarlic e766229b58 VFS+Ext2: many simplifications and filesystem initialisation 2022-08-08 08:21:35 +03:00
TheOddGarlic 52cd72a949 Ext2: find_dir implementation 2022-08-08 08:21:35 +03:00
TheOddGarlic e21b34a3e7 Ext2: read_dir implementation 2022-08-08 08:21:35 +03:00
TheOddGarlic 8c9521e893 VFS: simplify everything 2022-08-08 08:21:35 +03:00
TheOddGarlic 91c1783b99 vfs+ext2: initial FsNode::read() implementation
The VFS side of things for read() should be done, however due to my
limited ext2 knowledge, I've not implemented partially reading a file,
and in this state only full files can be read.
2022-08-08 08:21:35 +03:00
TheOddGarlic 600a81adf7 vfs: FsNode::release() implementation and weak ref to VFS node in file descriptors 2022-08-08 08:21:35 +03:00
TheOddGarlic 2a163a55ee vfs: rename FsNode::close() to FsNode::release()
FsNode::close() will instead become a method that takes a closes a file descriptor, while release() will close the whole VFS node.
2022-08-08 08:21:35 +03:00
TheOddGarlic cdb6632f98 vfs+ext2: full implementation of FsNode::open() 2022-08-08 08:21:35 +03:00
TheOddGarlic aa3667714b vfs: documentation and a few minor changes 2022-08-08 08:21:35 +03:00
TheOddGarlic 9ed5ffc521 vfs: FsNode::new() 2022-08-08 08:21:35 +03:00
TheOddGarlic 52ff9f8a3c vfs: remove name from VFS nodes 2022-08-08 08:21:35 +03:00
TheOddGarlic 31a3feb6a0 vfs: move operations into trait StorageDevice, hold StorageDevices in KERNEL_STATE 2022-08-08 08:21:35 +03:00
TheOddGarlic 9462350de7 vfs: readdir and finddir operations in FsNode 2022-08-08 08:21:35 +03:00
TheOddGarlic c63fbabc42 feat: start VFS implementation 2022-08-08 08:21:35 +03:00
Erin 9ed7dbb34c chore: fmt 2022-04-12 00:23:11 +02:00
Erin 56b569deb2 Refactoring
- Applied some clippy lints
- Formatting
- Replaced lazy_static with Lazy from spin
2022-04-11 22:51:54 +02:00
TheOddGarlic 10646959fa Add repbuild subcommands mount & unmount
These repbuild subcommands mount the filesystem root to the
userland/root_fs/mnt folder, and this makes editing the initial file
system easier.

This also renames userland/root_rs to userland/root_fs.
2022-03-26 14:52:23 +03:00
Able 0379a34a59 TOML config|moved a ton of boiler plate to prelude 2022-03-11 13:51:47 -06:00
Able 75cfb18c77 character device impl, pci devices found 2022-02-09 07:08:40 -06:00