FreeBSD Bugzilla – Attachment 174052 Details for
Bug 212139
r298900 introduced a fatal failure case for >2TB disk size reporting bugs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Hack workaround
d (text/plain), 665 bytes, created by
Peter Wemm
on 2016-08-25 12:34:22 UTC
(
hide
)
Description:
Hack workaround
Filename:
MIME Type:
Creator:
Peter Wemm
Created:
2016-08-25 12:34:22 UTC
Size:
665 bytes
patch
obsolete
>Index: sys/boot/i386/libi386/biosdisk.c >=================================================================== >--- sys/boot/i386/libi386/biosdisk.c (revision 304799) >+++ sys/boot/i386/libi386/biosdisk.c (working copy) >@@ -514,11 +514,11 @@ > *rsize = 0; > > if (dblk >= BD(dev).bd_sectors) { >+ /* perform single sector partial read */ >+ blks = 1; >+ size = BD(dev).bd_sectorsize; > DEBUG("IO past disk end %llu", (unsigned long long)dblk); >- return (EIO); >- } >- >- if (dblk + blks > BD(dev).bd_sectors) { >+ } else if (dblk + blks > BD(dev).bd_sectors) { > /* perform partial read */ > blks = BD(dev).bd_sectors - dblk; > size = blks * BD(dev).bd_sectorsize;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212139
: 174052 |
174075
|
174080