diff --git a/ChangeLog b/ChangeLog index 6fa2838bd..2f56c51a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-06 Robert Millan + + * util/biosdisk.c (open_device): Do not modify sector offset when + accessing a partition. kern/disk.c already handles this for us. + 2008-06-06 Robert Millan * util/grub-emu.c (grub_machine_init): Move code in this function from diff --git a/util/biosdisk.c b/util/biosdisk.c index b949b2db6..eb1f3ff9b 100644 --- a/util/biosdisk.c +++ b/util/biosdisk.c @@ -298,9 +298,6 @@ 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);