mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
2008-06-07 Pavel Roskin <proski@gnu.org>
* util/biosdisk.c (open_device): Revert last change to the function, it broke installation. The sector needs to be different dependent on which device is opened.
This commit is contained in:
1 parent
c5e3cfba13
commit
dc20b0f9f5
2 files changed
+9
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2008-06-07 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* util/biosdisk.c (open_device): Revert last change to the
|
||||||
|
function, it broke installation. The sector needs to be
|
||||||
|
different dependent on which device is opened.
|
||||||
|
|
||||||
2008-06-06 Robert Millan <rmh@aybabtu.com>
|
2008-06-06 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
|
Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
|
||||||
|
|||||||
@@ -298,6 +298,9 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags)
|
|||||||
|
|
||||||
/* Make the buffer cache consistent with the physical disk. */
|
/* Make the buffer cache consistent with the physical disk. */
|
||||||
ioctl (fd, BLKFLSBUF, 0);
|
ioctl (fd, BLKFLSBUF, 0);
|
||||||
|
|
||||||
|
if (is_partition)
|
||||||
|
sector -= disk->partition->start;
|
||||||
}
|
}
|
||||||
#else /* ! __linux__ */
|
#else /* ! __linux__ */
|
||||||
fd = open (map[disk->id].device, flags);
|
fd = open (map[disk->id].device, flags);
|
||||||
|
|||||||
Reference in new issue
Block a user