Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 125876 Details for
Bug 158426
grub won't setup to raid 1 members
Home
New
Search
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.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch that fixes the regression introduced by grub-0.97-nxstack.patch
multi-install.patch (text/plain), 1.82 KB, created by
Alexandre Oliva
on 2006-03-09 14:39:36 UTC
(
hide
)
Description:
Patch that fixes the regression introduced by grub-0.97-nxstack.patch
Filename:
MIME Type:
Creator:
Alexandre Oliva
Created:
2006-03-09 14:39:36 UTC
Size:
1.82 KB
patch
obsolete
>2006-03-09 Alexandre Oliva <oliva@gnu.org> > > * lib/builtins.c (install_blocklist_helper): Move static > last_lenght... > (install_func_context): ... here. > (install_func): Reset it. > >Index: grub-0.97/stage2/builtins.c >=================================================================== >--- grub-0.97.orig/stage2/builtins.c 2006-03-09 10:26:41.000000000 -0300 >+++ grub-0.97/stage2/builtins.c 2006-03-09 11:36:18.000000000 -0300 >@@ -1926,11 +1926,13 @@ static struct { > int saved_sector; > int installaddr; > int installlist; >+ int last_length; > char *stage2_first_buffer; > } install_func_context = { > .saved_sector = 0, > .installaddr = 0, > .installlist = 0, >+ .last_length = SECTOR_SIZE, > .stage2_first_buffer = NULL, > }; > >@@ -1960,19 +1962,19 @@ install_blocklist_helper (int sector, in > int *installlist = &install_func_context.installlist; > char **stage2_first_buffer = &install_func_context.stage2_first_buffer; > /* Was the last sector full? */ >- static int last_length = SECTOR_SIZE; >+ int *last_length = &install_func_context.last_length; > > if (debug) > printf("[%d]", sector); > >- if (offset != 0 || last_length != SECTOR_SIZE) >+ if (offset != 0 || *last_length != SECTOR_SIZE) > { > /* We found a non-sector-aligned data block. */ > errnum = ERR_UNALIGNED; > return; > } > >- last_length = length; >+ *last_length = length; > > if (*((unsigned long *) (*installlist - 4)) > + *((unsigned short *) *installlist) != sector >@@ -2027,7 +2029,11 @@ install_func (char *arg, int flags) > int is_open = 0; > /* If LBA is forced? */ > int is_force_lba = 0; >+ int *last_length = &install_func_context.last_length; > >+ /* Reset state. */ >+ *last_length = SECTOR_SIZE; >+ > *stage2_first_buffer = old_sect + SECTOR_SIZE; > #ifdef GRUB_UTIL > /* If the Stage 2 is in a partition mounted by an OS, this will store
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 158426
: 125876