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 589004 Details for
Bug 828013
Grub2 has issues dual booting with Windows 7
[?]
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.
[patch]
Bugfix
mbr.diff (text/plain), 2.98 KB, created by
Vladimir Serbinenko
on 2012-06-04 01:54:38 UTC
(
hide
)
Description:
Bugfix
Filename:
MIME Type:
Creator:
Vladimir Serbinenko
Created:
2012-06-04 01:54:38 UTC
Size:
2.98 KB
patch
obsolete
>=== modified file 'ChangeLog' >--- ChangeLog 2012-06-01 20:43:10 +0000 >+++ ChangeLog 2012-06-02 11:48:44 +0000 >@@ -1,3 +1,9 @@ >+2012-06-02 Vladimir Serbinenko <phcoder@gmail.com> >+ >+ * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]: >+ Fix MBR remapping workaround. >+ (grub_util_biosdisk_read) [__linux__]: Likewise. >+ > 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com> > > * util/grub-install.in: Check for ieee1275 and not ieee1276. > >=== modified file 'grub-core/kern/emu/hostdisk.c' >--- grub-core/kern/emu/hostdisk.c 2012-05-27 11:19:09 +0000 >+++ grub-core/kern/emu/hostdisk.c 2012-06-02 11:48:44 +0000 >@@ -1067,27 +1067,18 @@ > if (fd < 0) > return grub_errno; > >+#ifdef __linux__ >+ if (sector == 0) >+ /* Work around a bug in Linux ez remapping. Linux remaps all >+ sectors that are read together with the MBR in one read. It >+ should only remap the MBR, so we split the read in two >+ parts. -jochen */ >+ max = 1; >+#endif /* __linux__ */ >+ > if (max > size) > max = size; > >-#ifdef __linux__ >- if (sector == 0 && max > 1) >- { >- /* Work around a bug in Linux ez remapping. Linux remaps all >- sectors that are read together with the MBR in one read. It >- should only remap the MBR, so we split the read in two >- parts. -jochen */ >- if (grub_util_fd_read (fd, buf, (1 << disk->log_sector_size)) >- != (1 << disk->log_sector_size)) >- return grub_error (GRUB_ERR_READ_ERROR, N_("cannot read `%s': %s"), >- map[disk->id].device, strerror (errno)); >- >- buf += (1 << disk->log_sector_size); >- size--; >- max--; >- } >-#endif /* __linux__ */ >- > if (grub_util_fd_read (fd, buf, max << disk->log_sector_size) > != (ssize_t) (max << disk->log_sector_size)) > return grub_error (GRUB_ERR_READ_ERROR, N_("cannot read `%s': %s"), >@@ -1111,28 +1102,18 @@ > if (fd < 0) > return grub_errno; > >+#ifdef __linux__ >+ if (sector == 0) >+ /* Work around a bug in Linux ez remapping. Linux remaps all >+ sectors that are write together with the MBR in one write. It >+ should only remap the MBR, so we split the write in two >+ parts. -jochen */ >+ max = 1; >+#endif /* __linux__ */ >+ > if (max > size) > max = size; > >-#ifdef __linux__ >- if (sector == 0 && max > 1) >- { >- /* Work around a bug in Linux ez remapping. Linux remaps all >- sectors that are write together with the MBR in one write. It >- should only remap the MBR, so we split the write in two >- parts. -jochen */ >- if (grub_util_fd_write (fd, buf, (1 << disk->log_sector_size)) >- != (1 << disk->log_sector_size)) >- return grub_error (GRUB_ERR_WRITE_ERROR, >- N_("cannot write to `%s': %s"), >- map[disk->id].device, strerror (errno)); >- >- buf += (1 << disk->log_sector_size); >- size--; >- max--; >- } >-#endif /* __linux__ */ >- > if (grub_util_fd_write (fd, buf, max << disk->log_sector_size) > != (ssize_t) (max << disk->log_sector_size)) > return grub_error (GRUB_ERR_WRITE_ERROR, N_("cannot write to `%s': %s"), >
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 828013
: 589004