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, Jan 27, 4:48 PM
Unknown Object (File)
Mon, Jan 27, 4:38 PM
Unknown Object (File)
Sat, Jan 18, 7:22 PM
Unknown Object (File)
Sat, Jan 18, 7:22 PM
Unknown Object (File)
Sat, Jan 18, 7:07 PM
Unknown Object (File)
Dec 11 2024, 9:52 PM
Unknown Object (File)
Dec 7 2024, 11:19 PM
Unknown Object (File)
Dec 6 2024, 8:13 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.