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:
proski committed 2008-06-07 04:30:22 +00:00
1 parent c5e3cfba13
commit dc20b0f9f5
2 files changed
+9

No files matched your search

+3
View File
@@ -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. */
ioctl (fd, BLKFLSBUF, 0);
if (is_partition)
sector -= disk->partition->start;
}
#else /* ! __linux__ */
fd = open (map[disk->id].device, flags);