Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159437 Details for
Bug 248559
Testing, testing, testing
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
this a small patch
get_geometry.patch (text/plain), 1.20 KB, created by
IBM Mirproxy
on 2007-07-17 14:20:40 UTC
(
hide
)
Description:
this a small patch
Filename:
MIME Type:
Creator:
IBM Mirproxy
Created:
2007-07-17 14:20:40 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 Raw
Actions:
View
Attachments on
bug 248559
: 159437 |
159439
|
159442