mirror of
https://github.com/xqemu/xqemu.git
synced 2025-04-02 11:11:56 -04:00
This avoids a possible division by zero.
Convert s->tracks to unsigned as well because it feels better than
surviving just because the results of calculations with s->tracks are
converted to unsigned anyway.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 9302e863aa
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
18 lines
582 B
Text
18 lines
582 B
Text
QA output created by 076
|
|
|
|
== Read from a valid (enough) image ==
|
|
read 65536/65536 bytes at offset 0
|
|
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
== Negative catalog size ==
|
|
qemu-io: can't open device TEST_DIR/fake.parallels: Catalog too large
|
|
no file open, try 'help open'
|
|
|
|
== Overflow in catalog allocation ==
|
|
qemu-io: can't open device TEST_DIR/fake.parallels: Catalog too large
|
|
no file open, try 'help open'
|
|
|
|
== Zero sectors per track ==
|
|
qemu-io: can't open device TEST_DIR/fake.parallels: Invalid image: Zero sectors per track
|
|
no file open, try 'help open'
|
|
*** done
|