mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
Kernel: Add ioctl request for getting a storage device's block size
This commit is contained in:
committed by
Andreas Kling
parent
8d631dcd5e
commit
b2e57f555b
@@ -196,6 +196,11 @@ KResult StorageDevice::ioctl(OpenFileDescription&, unsigned request, Userspace<v
|
||||
return copy_to_user(Userspace<size_t*>(arg), &disk_size);
|
||||
break;
|
||||
}
|
||||
case STORAGE_DEVICE_GET_BLOCK_SIZE: {
|
||||
size_t size = block_size();
|
||||
return copy_to_user(Userspace<size_t*>(arg), &size);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user