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)
Sat, May 18, 7:33 AM
Unknown Object (File)
May 8 2024, 8:16 PM
Unknown Object (File)
May 8 2024, 8:40 AM
Unknown Object (File)
May 8 2024, 8:40 AM
Unknown Object (File)
May 8 2024, 8:40 AM
Unknown Object (File)
May 8 2024, 5:40 AM
Unknown Object (File)
May 1 2024, 6:22 AM
Unknown Object (File)
Apr 30 2024, 7:59 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 Not Applicable
Unit
Tests Not Applicable

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.