Page MenuHomeFreeBSD

libdiff: Simplify truncation detection
ClosedPublic

Authored by des on Feb 4 2026, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 14, 4:09 PM
Unknown Object (File)
Thu, Mar 5, 6:24 AM
Unknown Object (File)
Feb 27 2026, 7:00 PM
Unknown Object (File)
Feb 26 2026, 12:21 PM
Unknown Object (File)
Feb 21 2026, 12:12 PM
Unknown Object (File)
Feb 19 2026, 7:24 PM
Unknown Object (File)
Feb 18 2026, 6:52 PM
Unknown Object (File)
Feb 18 2026, 3:57 PM
Subscribers

Details

Summary
  • Adjust the comment to reflect the fact that SIGBUS can occur not only if the file is truncated, but also if an I/O error occurs while paging in any part of it.
  • Instead of setting a flag, just return EIO.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable