summaryrefslogtreecommitdiff
path: root/Kernel/Storage/StorageDevice.h
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-03-16 20:23:16 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-17 23:22:42 +0100
commit9a3aa7eb0b3f8822bb95442681fbf851f53369fd (patch)
tree5369130de5ce47a83eab3833d5f95e6add47ec5b /Kernel/Storage/StorageDevice.h
parentaeef14ae28019f2f62552259e6c081c50b703106 (diff)
downloadserenity-9a3aa7eb0b3f8822bb95442681fbf851f53369fd.zip
Kernel: Refactor storage stack with u64 as number of blocks
Diffstat (limited to 'Kernel/Storage/StorageDevice.h')
-rw-r--r--Kernel/Storage/StorageDevice.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Storage/StorageDevice.h b/Kernel/Storage/StorageDevice.h
index a16ef11301..c2c3537c2d 100644
--- a/Kernel/Storage/StorageDevice.h
+++ b/Kernel/Storage/StorageDevice.h
@@ -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;
};
}