Page MenuHomeFreeBSD

libdiff: Simplify truncation detection
ClosedPublic

Authored by des on Wed, Feb 4, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 11, 6:50 PM
Unknown Object (File)
Wed, Feb 11, 4:36 PM
Unknown Object (File)
Wed, Feb 11, 7:26 AM
Unknown Object (File)
Wed, Feb 11, 7:26 AM
Unknown Object (File)
Wed, Feb 11, 2:17 AM
Unknown Object (File)
Wed, Feb 11, 12:25 AM
Unknown Object (File)
Tue, Feb 10, 11:57 PM
Unknown Object (File)
Tue, Feb 10, 11:16 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