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)
Dec 3 2025, 12:36 PM
Unknown Object (File)
Nov 22 2025, 2:56 PM
Unknown Object (File)
Nov 8 2025, 12:15 AM
Unknown Object (File)
Nov 6 2025, 9:44 PM
Unknown Object (File)
Nov 5 2025, 8:27 AM
Unknown Object (File)
Nov 4 2025, 9:31 PM
Unknown Object (File)
Nov 4 2025, 9:30 PM
Unknown Object (File)
Nov 4 2025, 9:29 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.