tmpfs: rename tmpfs::Inode to tmpfs::FileInode
This commit is contained in:
parent
d3bda46325
commit
5fb292bc0e
@ -13,7 +13,7 @@ namespace TmpFS
|
|||||||
|
|
||||||
Result<SharedPtr<VFS::Inode>> FileSystem::create_file_inode()
|
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_fs(*this, {});
|
||||||
inode->set_inode_number(m_next_inode_number, {});
|
inode->set_inode_number(m_next_inode_number, {});
|
||||||
TRY(m_inodes.try_append(inode));
|
TRY(m_inodes.try_append(inode));
|
||||||
|
@ -31,10 +31,10 @@ namespace TmpFS
|
|||||||
Atomic<usize> m_next_inode_number { 2 };
|
Atomic<usize> m_next_inode_number { 2 };
|
||||||
};
|
};
|
||||||
|
|
||||||
class Inode : public VFS::FileInode
|
class FileInode : public VFS::FileInode
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Inode() = default;
|
FileInode() = default;
|
||||||
|
|
||||||
void set_fs(FileSystem& fs, Badge<FileSystem>)
|
void set_fs(FileSystem& fs, Badge<FileSystem>)
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ namespace TmpFS
|
|||||||
return m_inode_number;
|
return m_inode_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~Inode() = default;
|
virtual ~FileInode() = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
VFS::FileSystem* m_fs;
|
VFS::FileSystem* m_fs;
|
||||||
|
Loading…
Reference in New Issue
Block a user