HomeFreeBSD

bhyve: Address warnings in blockif_proc()

Description

bhyve: Address warnings in blockif_proc()

  • Use unsigned types for all arithmetic. Use a new signed variable for holding the return value of pread() and pwrite().
  • Handle short I/O from pwrite().

MFC after: 1 week

(cherry picked from commit 46f5c828961e64646c46ff9e3bc8e55f46f3e7bb)

Details

Provenance
markjAuthored on Oct 25 2022, 1:16 PM
jhbCommitted on Jan 26 2023, 7:42 PM
Parents
rGdc1d08705b4e: bhyve: Drop a bogus const qualifier
Branches
Unknown
Tags
Unknown