1
Fork 0
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:
Julian Offenhäuser 2023-03-14 14:11:31 +01:00 committed by Andreas Kling
parent 9927dab993
commit d1e88a5141
9 changed files with 45 additions and 46 deletions

View file

@ -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