Page MenuHomeFreeBSD

kboot: Implement write support for hostdisk
ClosedPublic

Authored by imp on Feb 21 2024, 10:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 13 2024, 12:55 PM
Unknown Object (File)
Aug 30 2024, 11:43 AM
Unknown Object (File)
Aug 25 2024, 4:31 AM
Unknown Object (File)
Jul 4 2024, 12:35 PM
Unknown Object (File)
Jul 4 2024, 7:26 AM
Unknown Object (File)
Jun 13 2024, 7:39 PM
Unknown Object (File)
May 18 2024, 7:33 AM
Unknown Object (File)
May 8 2024, 8:16 PM
Subscribers

Details

Summary

Don't assume that strategy is only called for read. Check the passed
flag for F_READ or F_WRITE and fail if it is neither. Open the disks for
writing and call host_read/host_write depending on that flag.

Sponsored by: Netflix

Test Plan

This fixes boot once with kboot.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56159
Build 53047: arc lint + arc unit

Event Timeline

imp requested review of this revision.Feb 21 2024, 10:08 PM
imp added reviewers: gleb, kevans.
imp added inline comments.
stand/kboot/kboot/hostdisk.c
318

deleting this debugging is intentional.

This revision is now accepted and ready to land.Feb 21 2024, 11:18 PM

Ah, yeah, that'd definitely do it...

This revision was automatically updated to reflect the committed changes.