1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

Kernel: Add STORAGE_DEVICE_GET_SIZE ioctl request

This ioctl request makes it possible to get the size of a storage device
that has not yet been mounted.
This commit is contained in:
David Isaksson 2021-10-08 22:20:26 +02:00 committed by Andreas Kling
parent 88eb7a634f
commit 3b089032f4
3 changed files with 20 additions and 1 deletions

View file

@ -50,6 +50,9 @@ public:
virtual CommandSet command_set() const = 0;
// ^File
virtual KResult ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) final;
protected:
StorageDevice(int, int, size_t, u64, NonnullOwnPtr<KString>);
// ^DiskDevice