Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 101583 Details for
Bug 152293
sys-fs/evms-2.5.5-r3.ebuild with some more patches and without the need of glib1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
get_geometry.patch
get_geometry.patch (text/plain), 1.20 KB, created by
Brad Allen
on 2006-11-09 21:35:27 UTC
(
hide
)
Description:
get_geometry.patch
Filename:
MIME Type:
Creator:
Brad Allen
Created:
2006-11-09 21:35:27 UTC
Size:
1.20 KB
patch
obsolete
>This patch fixes a segmentation fault that can occur in the Local Disk Manager >when the queries for getting the geometry of the disk return a value of zero >for either the number of heads or the number of sectors per track. > >--- evms-2.5.5/plugins/disk/localdskmgr.c 2006-02-24 13:53:21.000000000 -0600 >+++ evms-2.5.5-fix/plugins/disk/localdskmgr.c 2006-09-01 11:41:56.681089000 -0500 >@@ -1552,16 +1552,25 @@ > > LOG_ENTRY(); > >- /* Set defaults */ >- disk->geometry.heads = 255; >- disk->geometry.sectors_per_track = 63; >- > rc = get_partition_table_geometry(disk); > > if (rc != 0) { >- get_kernel_geometry(disk); >+ rc = get_kernel_geometry(disk); >+ } >+ >+ /* Set defaults if no valid geometry was found. */ >+ if (disk->geometry.heads == 0) { >+ LOG_DEBUG("Disk %s: Heads is zero - setting to 255.\n", >+ disk->name); >+ disk->geometry.heads = 255; >+ } >+ if (disk->geometry.sectors_per_track == 0) { >+ LOG_DEBUG("Disk %s: Sectors-per-track is zero - " >+ "setting to 63.\n", disk->name); >+ disk->geometry.sectors_per_track = 63; > } > >+ /* Calculate number of cylinders based on other geometry fields. */ > disk->geometry.cylinders = disk->size / > (disk->geometry.heads * > disk->geometry.sectors_per_track *
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 152293
:
100164
|
100165
|
100166
|
100167
|
100168
|
100169
|
100253
|
100255
|
101581
|
101582
| 101583 |
101584