mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Kernel: Merge unnecessary DiskDevice class into BlockDevice
This commit is contained in:
parent
6be880bd10
commit
88ea152b24
27 changed files with 98 additions and 212 deletions
|
@ -89,7 +89,7 @@ class Ext2FS final : public DiskBackedFS {
|
|||
friend class Ext2FSInode;
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<Ext2FS> create(NonnullRefPtr<DiskDevice>);
|
||||
static NonnullRefPtr<Ext2FS> create(BlockDevice&);
|
||||
virtual ~Ext2FS() override;
|
||||
virtual bool initialize() override;
|
||||
|
||||
|
@ -106,7 +106,7 @@ private:
|
|||
typedef unsigned BlockIndex;
|
||||
typedef unsigned GroupIndex;
|
||||
typedef unsigned InodeIndex;
|
||||
explicit Ext2FS(NonnullRefPtr<DiskDevice>&&);
|
||||
explicit Ext2FS(BlockDevice&);
|
||||
|
||||
const ext2_super_block& super_block() const { return m_super_block; }
|
||||
const ext2_group_desc& group_descriptor(GroupIndex) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue