Page MenuHomeFreeBSD

libdiff: Simplify truncation detection
ClosedPublic

Authored by des on Feb 4 2026, 6:35 PM.
Tags
None
Referenced Files
F154670820: D55108.diff
Wed, Apr 29, 4:38 AM
F154669297: D55108.diff
Wed, Apr 29, 4:31 AM
F154633274: D55108.id171180.diff
Wed, Apr 29, 2:26 AM
F154629983: D55108.id171180.diff
Wed, Apr 29, 2:19 AM
F154629977: D55108.id171180.diff
Wed, Apr 29, 2:19 AM
F154446510: D55108.diff
Tue, Apr 28, 3:08 PM
Unknown Object (File)
Tue, Apr 28, 1:43 AM
Unknown Object (File)
Mon, Apr 27, 7:32 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70420
Build 67303: arc lint + arc unit