mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Kernel: Refactor storage stack with u64 as number of blocks
This commit is contained in:
parent
aeef14ae28
commit
9a3aa7eb0b
Notes:
sideshowbarker
2024-07-18 21:16:07 +09:00
Author: https://github.com/boricj
Commit: 9a3aa7eb0b
Pull-request: https://github.com/SerenityOS/serenity/pull/5766
Reviewed-by: https://github.com/supercomputer7
10 changed files with 26 additions and 38 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
|
||||
public:
|
||||
virtual Type type() const = 0;
|
||||
virtual size_t max_addressable_block() const { return m_max_addressable_block; }
|
||||
virtual u64 max_addressable_block() const { return m_max_addressable_block; }
|
||||
|
||||
NonnullRefPtr<StorageController> controller() const;
|
||||
|
||||
|
@ -61,15 +61,15 @@ public:
|
|||
virtual mode_t required_mode() const override { return 0600; }
|
||||
|
||||
protected:
|
||||
StorageDevice(const StorageController&, size_t, size_t);
|
||||
StorageDevice(const StorageController&, int, int, size_t, size_t);
|
||||
StorageDevice(const StorageController&, size_t, u64);
|
||||
StorageDevice(const StorageController&, int, int, size_t, u64);
|
||||
// ^DiskDevice
|
||||
virtual const char* class_name() const override;
|
||||
|
||||
private:
|
||||
NonnullRefPtr<StorageController> m_storage_controller;
|
||||
NonnullRefPtrVector<DiskPartition> m_partitions;
|
||||
size_t m_max_addressable_block;
|
||||
u64 m_max_addressable_block;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue