FreeBSD Bugzilla – Attachment 79240 Details for
Bug 113849
[libdisk] [patch] Correction of Sanitize_Bios_Geom for large disk
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.07 KB, created by
Cedric GROSS
on 2007-06-19 09:50:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Cedric GROSS
Created:
2007-06-19 09:50:03 UTC
Size:
1.07 KB
patch
obsolete
>--- src/lib/libdisk/change.c.origin Wed Mar 30 15:03:33 2005 >+++ src/lib/libdisk/change.c Tue Jun 19 10:15:58 2007 >@@ -34,23 +34,11 @@ > > sane = 1; > >-#ifdef PC98 > if (disk->bios_cyl >= 65536) >-#else >- if (disk->bios_cyl > 1024) >-#endif > sane = 0; >-#ifdef PC98 > if (disk->bios_hd >= 256) >-#else >- if (disk->bios_hd > 16) >-#endif > sane = 0; >-#ifdef PC98 > if (disk->bios_sect >= 256) >-#else >- if (disk->bios_sect > 63) >-#endif > sane = 0; > if (disk->bios_cyl * disk->bios_hd * disk->bios_sect != > disk->chunks->size) >@@ -64,11 +52,7 @@ > disk->bios_cyl = disk->chunks->size / > (disk->bios_sect * disk->bios_hd); > >-#ifdef PC98 > if (disk->bios_cyl < 65536) >-#else >- if (disk->bios_cyl < 1024) >-#endif > return; > > /* Hmm, try harder... */ >@@ -82,7 +66,6 @@ > disk->bios_cyl = disk->chunks->size / > (disk->bios_sect * disk->bios_hd); > >-#ifdef PC98 > if (disk->bios_cyl < 65536) > return; > >@@ -99,7 +82,8 @@ > disk->bios_hd = 255; > disk->bios_cyl = disk->chunks->size / > (disk->bios_sect * disk->bios_hd); >-#endif >+ >+ /* should be ok with head=255 and sector=255 */ > } > > void
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 113849
: 79240