HomeFreeBSD

test_diskread(): detect end of the disk

Description

test_diskread(): detect end of the disk

Detect the end of the disk condition. This may happpen when
disk image is truncated and the reads are addressing blocks past
image end.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D35432

Details

Provenance
tsoomeAuthored on Jun 1 2022, 7:28 AM
Differential Revision
D35432: test_diskread(): detect end of the disk
Parents
rGa2e02d9d8e10: loader.efi: fix panic() after BS off
Branches
Unknown
Tags
Unknown