2008-07-02 Pavel Roskin <proski@gnu.org>
* disk/ata.c (grub_ata_readwrite): Don't increment sector number for every read sector, we already increment it for the whole batch. This fixes reading more than 256 sectors at once.
This commit is contained in:
parent
11e16b157b
commit
f707af4216
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
2008-07-02 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* disk/ata.c (grub_ata_readwrite): Don't increment sector number
|
||||
for every read sector, we already increment it for the whole
|
||||
batch. This fixes reading more than 256 sectors at once.
|
||||
|
||||
* util/grub-editenv.c (cmd_info): Cast argument to long
|
||||
explicitly. ptrdiff_t reduces to int on i386.
|
||||
|
||||
|
|
|
@ -525,7 +525,6 @@ grub_ata_readwrite (grub_disk_t disk, grub_disk_addr_t sector,
|
|||
GRUB_DISK_SECTOR_SIZE))
|
||||
return grub_error (GRUB_ERR_READ_ERROR, "ATA read error");
|
||||
buf += GRUB_DISK_SECTOR_SIZE;
|
||||
sector++;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue