[Bug 212139] r298900 introduced a fatal failure case for >2TB disk size reporting bugs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 25 22:18:20 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212139

Peter Wemm <peter at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #174075|0                           |1
        is obsolete|                            |

--- Comment #5 from Peter Wemm <peter at FreeBSD.org> ---
Created attachment 174080
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=174080&action=edit
Prevent read-ahead from crossing 32 bit aliases of end-of-disk

I think this patch will work.  I've been running it in a test rig to check for
wrapping and aliasing scenarios.  I'll test it shortly.

Note that it uses tcp-style sequence space signed arithmetic to handle
wraparounds.  The use of signed math is intentional.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list