mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:37:35 +00:00
Kernel: Propagate errors in StorageController reset() and shutdown()
These used to signal an error with a boolean return type. We now return a sensible errno instead.
This commit is contained in:
parent
9927dab993
commit
d1e88a5141
9 changed files with 45 additions and 46 deletions
|
@ -16,14 +16,14 @@ ErrorOr<NonnullRefPtr<RamdiskController>> RamdiskController::try_initialize()
|
|||
return TRY(adopt_nonnull_ref_or_enomem(new (nothrow) RamdiskController()));
|
||||
}
|
||||
|
||||
bool RamdiskController::reset()
|
||||
ErrorOr<void> RamdiskController::reset()
|
||||
{
|
||||
TODO();
|
||||
return Error::from_errno(ENOTIMPL);
|
||||
}
|
||||
|
||||
bool RamdiskController::shutdown()
|
||||
ErrorOr<void> RamdiskController::shutdown()
|
||||
{
|
||||
TODO();
|
||||
return Error::from_errno(ENOTIMPL);
|
||||
}
|
||||
|
||||
size_t RamdiskController::devices_count() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue