Page MenuHomeFreeBSD

libdiff: Simplify truncation detection
ClosedPublic

Authored by des on Feb 4 2026, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 11, 9:11 AM
Unknown Object (File)
Fri, Sep 11, 7:15 AM
Unknown Object (File)
Mon, Sep 7, 1:58 AM
Unknown Object (File)
Sun, Sep 6, 12:57 AM
Unknown Object (File)
Tue, Aug 25, 6:31 PM
Unknown Object (File)
Sat, Aug 22, 7:00 AM
Unknown Object (File)
Thu, Aug 20, 5:06 AM
Unknown Object (File)
Tue, Aug 18, 11:05 AM
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