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.

Differential Revision: https://reviews.freebsd.org/D35432

(cherry picked from commit 942e52f776e6bbe016a3e920c96a1cd4dbddf7e3)

Details

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