]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qtest/ahci: Assert sector size in identify test
authorJohn Snow <jsnow@redhat.com>
Thu, 5 Feb 2015 17:41:29 +0000 (12:41 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:17 +0000 (15:07 +0000)
commit122482a398db9f02287efce9eec26e08dac82bcd
treed406b346a4a94e5487d2f723a42cc8c27e736636
parent259342d34dbdfb304374f569feec26317edd97c9
qtest/ahci: Assert sector size in identify test

A minor sanity check to assert that the sector size is 512.
The current block layer code deeply assumes that the IDE
sector size will be 512 bytes, so we carry forward that assumption
here.

This is useful for the DMA tests, which currently assume that
a sector will always be 512 bytes.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1423158090-25580-19-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/ahci-test.c