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)
Mon, Apr 6, 8:09 PM
Unknown Object (File)
Mar 4 2026, 3:37 PM
Unknown Object (File)
Mar 4 2026, 1:52 AM
Unknown Object (File)
Mar 3 2026, 12:15 AM
Unknown Object (File)
Mar 1 2026, 10:08 PM
Unknown Object (File)
Feb 26 2026, 6:46 PM
Unknown Object (File)
Feb 26 2026, 1:44 AM
Unknown Object (File)
Feb 8 2026, 10:45 AM
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.