]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-06-06 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Fri, 6 Jun 2008 15:56:46 +0000 (15:56 +0000)
committerrobertmh <robertmh@localhost>
Fri, 6 Jun 2008 15:56:46 +0000 (15:56 +0000)
        * util/biosdisk.c (open_device): Do not modify sector offset when
        accessing a partition.  kern/disk.c already handles this for us.

ChangeLog
util/biosdisk.c

index 6fa2838bd044ec157719c3c2c959937ea94598e1..2f56c51a79f68e3e3fa10c4b7a7e3fab1515eed1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-06  Robert Millan  <rmh@aybabtu.com>
+
+       * 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  <rmh@aybabtu.com>
 
        * util/grub-emu.c (grub_machine_init): Move code in this function from
index b949b2db64562ec8c7a37b926773adff39c4cb9e..eb1f3ff9bd4f0d2513cf8ba87756cd8f1edeecb6 100644 (file)
@@ -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);