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, Oct 10, 11:30 PM
Unknown Object (File)
Sat, Oct 10, 10:33 PM
Unknown Object (File)
Thu, Oct 1, 9:48 PM
Unknown Object (File)
Wed, Sep 30, 11:04 PM
Unknown Object (File)
Tue, Sep 29, 7:14 AM
Unknown Object (File)
Fri, Sep 25, 9:10 PM
Unknown Object (File)
Sep 11 2026, 9:11 AM
Unknown Object (File)
Sep 11 2026, 7:15 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70420
Build 67303: arc lint + arc unit