Kernel: Remove unused FileSystem::dev
This commit is contained in:
parent
944b045885
commit
c8c05f62b4
|
@ -62,8 +62,6 @@ namespace Kernel
|
||||||
|
|
||||||
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_inode; }
|
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_inode; }
|
||||||
|
|
||||||
virtual dev_t dev() const override { return m_block_device->rdev(); };
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ext2FS(BAN::RefPtr<BlockDevice> block_device)
|
Ext2FS(BAN::RefPtr<BlockDevice> block_device)
|
||||||
: m_block_device(block_device)
|
: m_block_device(block_device)
|
||||||
|
|
|
@ -37,8 +37,6 @@ namespace Kernel
|
||||||
|
|
||||||
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_inode; }
|
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_inode; }
|
||||||
|
|
||||||
virtual dev_t dev() const override { return m_block_device->rdev(); };
|
|
||||||
|
|
||||||
BAN::ErrorOr<BAN::RefPtr<FATInode>> open_inode(BAN::RefPtr<FATInode> parent, const FAT::DirectoryEntry& entry, uint32_t cluster_index, uint32_t entry_index);
|
BAN::ErrorOr<BAN::RefPtr<FATInode>> open_inode(BAN::RefPtr<FATInode> parent, const FAT::DirectoryEntry& entry, uint32_t cluster_index, uint32_t entry_index);
|
||||||
BAN::ErrorOr<void> inode_read_cluster(BAN::RefPtr<FATInode>, size_t index, BAN::ByteSpan buffer);
|
BAN::ErrorOr<void> inode_read_cluster(BAN::RefPtr<FATInode>, size_t index, BAN::ByteSpan buffer);
|
||||||
blksize_t inode_block_size(BAN::RefPtr<const FATInode>) const;
|
blksize_t inode_block_size(BAN::RefPtr<const FATInode>) const;
|
||||||
|
|
|
@ -26,8 +26,6 @@ namespace Kernel
|
||||||
static BAN::ErrorOr<BAN::RefPtr<FileSystem>> from_block_device(BAN::RefPtr<BlockDevice>);
|
static BAN::ErrorOr<BAN::RefPtr<FileSystem>> from_block_device(BAN::RefPtr<BlockDevice>);
|
||||||
|
|
||||||
virtual BAN::RefPtr<Inode> root_inode() = 0;
|
virtual BAN::RefPtr<Inode> root_inode() = 0;
|
||||||
|
|
||||||
virtual dev_t dev() const = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace Kernel
|
||||||
|
|
||||||
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_inode; }
|
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_inode; }
|
||||||
|
|
||||||
virtual dev_t dev() const override { return m_rdev; }
|
dev_t rdev() const { return m_rdev; }
|
||||||
|
|
||||||
BAN::ErrorOr<BAN::RefPtr<TmpInode>> open_inode(ino_t ino);
|
BAN::ErrorOr<BAN::RefPtr<TmpInode>> open_inode(ino_t ino);
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,6 @@ namespace Kernel
|
||||||
|
|
||||||
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_fs->root_inode(); }
|
virtual BAN::RefPtr<Inode> root_inode() override { return m_root_fs->root_inode(); }
|
||||||
|
|
||||||
// FIXME:
|
|
||||||
virtual dev_t dev() const override { return 0; }
|
|
||||||
|
|
||||||
BAN::ErrorOr<void> mount(const Credentials&, BAN::StringView, BAN::StringView);
|
BAN::ErrorOr<void> mount(const Credentials&, BAN::StringView, BAN::StringView);
|
||||||
BAN::ErrorOr<void> mount(const Credentials&, BAN::RefPtr<FileSystem>, BAN::StringView);
|
BAN::ErrorOr<void> mount(const Credentials&, BAN::RefPtr<FileSystem>, BAN::StringView);
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ namespace Kernel
|
||||||
|
|
||||||
dev_t TmpInode::dev() const
|
dev_t TmpInode::dev() const
|
||||||
{
|
{
|
||||||
return m_fs.dev();
|
return m_fs.rdev();
|
||||||
}
|
}
|
||||||
|
|
||||||
BAN::ErrorOr<BAN::RefPtr<TmpInode>> TmpInode::create_from_existing(TmpFileSystem& fs, ino_t ino, const TmpInodeInfo& info)
|
BAN::ErrorOr<BAN::RefPtr<TmpInode>> TmpInode::create_from_existing(TmpFileSystem& fs, ino_t ino, const TmpInodeInfo& info)
|
||||||
|
|
Loading…
Reference in New Issue