set parms.write on disk write

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-12-25 17:40:00 +01:00
parent 3c51ecb82b
commit c76ae9b4da

View file

@ -302,6 +302,7 @@ grub_ata_readwrite (grub_disk_t disk, grub_disk_addr_t sector,
parms.taskfile.cmd = (! rw ? cmd : cmd_write);
parms.buffer = buf;
parms.size = batch * GRUB_DISK_SECTOR_SIZE;
parms.write = rw;
if (ata->dma)
parms.dma = 1;