mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +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
|
@ -28,7 +28,6 @@
|
|||
|
||||
#include <AK/RefPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/Devices/DiskDevice.h>
|
||||
#include <Kernel/Devices/DiskPartition.h>
|
||||
#include <Kernel/Devices/MBRPartitionTable.h>
|
||||
|
||||
|
@ -44,7 +43,7 @@ struct [[gnu::packed]] EBRPartitionExtension
|
|||
class EBRPartitionTable {
|
||||
|
||||
public:
|
||||
explicit EBRPartitionTable(NonnullRefPtr<DiskDevice>);
|
||||
explicit EBRPartitionTable(NonnullRefPtr<BlockDevice>);
|
||||
~EBRPartitionTable();
|
||||
|
||||
bool initialize();
|
||||
|
@ -52,7 +51,7 @@ public:
|
|||
|
||||
private:
|
||||
int index_of_ebr_container() const;
|
||||
NonnullRefPtr<DiskDevice> m_device;
|
||||
NonnullRefPtr<BlockDevice> m_device;
|
||||
|
||||
const MBRPartitionHeader& header() const;
|
||||
const EBRPartitionExtension& ebr_extension() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue