Start working on a VFS implementation #22

Closed
apio wants to merge 44 commits from oop-vfs into main
2 changed files with 4 additions and 4 deletions
Showing only changes of commit b71d899b52 - Show all commits

View File

@ -13,7 +13,7 @@ namespace TmpFS
Result<SharedPtr<VFS::Inode>> FileSystem::create_file_inode()
{
SharedPtr<Inode> inode = TRY(make_shared<Inode>());
SharedPtr<FileInode> inode = TRY(make_shared<FileInode>());
inode->set_fs(*this, {});
inode->set_inode_number(m_next_inode_number, {});
TRY(m_inodes.try_append(inode));

View File

@ -31,10 +31,10 @@ namespace TmpFS
Atomic<usize> m_next_inode_number { 2 };
};
class Inode : public VFS::FileInode
class FileInode : public VFS::FileInode
{
public:
Inode() = default;
FileInode() = default;
void set_fs(FileSystem& fs, Badge<FileSystem>)
{
@ -56,7 +56,7 @@ namespace TmpFS
return m_inode_number;
}
virtual ~Inode() = default;
virtual ~FileInode() = default;
private:
VFS::FileSystem* m_fs;