mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-19 09:48:16 +00:00
9302e863aa
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>
19 lines
582 B
Plaintext
19 lines
582 B
Plaintext
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
|