Stefan Hajnoczi 61ed73cff4 raw-posix: fix O_DIRECT short reads
The following O_DIRECT read from a <512 byte file fails:

  $ truncate -s 320 test.img
  $ qemu-io -n -c 'read -P 0 0 512' test.img
  qemu-io: can't open device test.img: Could not read image for determining its format: Invalid argument

Note that qemu-io completes successfully without the -n (O_DIRECT)
option.

This patch fixes qemu-iotests ./check -nocache -vmdk 059.

Cc: qemu-stable@nongnu.org
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-08-22 11:00:56 +02:00
2014-08-22 11:00:56 +02:00
2014-06-23 11:00:12 -04:00
2014-07-08 15:08:03 +02:00
2014-08-09 00:06:41 +04:00
2014-08-15 15:07:14 +02:00
2014-08-18 14:39:10 -04:00
2014-08-15 16:37:17 +01:00
2014-08-15 18:54:07 +04:00
2014-08-15 18:44:48 +01:00
2014-06-16 13:24:35 +02:00
2014-06-09 15:43:40 +02:00
2014-07-09 15:50:11 +02:00
2014-08-09 00:06:32 +04:00
2014-07-09 15:50:11 +02:00
2014-06-23 11:12:28 -04:00
2014-08-20 14:31:56 +02:00
2014-08-15 14:49:50 +01:00
2014-08-12 14:26:12 +01:00
2014-08-07 15:09:48 +02:00
2014-06-05 16:10:33 +02:00
2014-07-14 12:03:21 +02:00
2014-06-19 18:44:21 +03:00
2014-06-19 16:41:54 +03:00
2014-08-15 16:37:17 +01:00
2014-08-15 16:37:17 +01:00
2014-06-23 19:09:50 +02:00
2014-08-18 14:39:10 -04:00
2014-06-30 12:50:17 +02:00
2014-08-15 18:44:48 +01:00
2014-08-18 11:59:27 +01:00
2014-08-15 14:49:50 +01:00
2014-07-07 09:15:29 +02:00
2014-08-18 11:59:27 +01:00
2014-08-06 17:53:07 +02:00
2014-08-12 14:29:55 +01:00
2014-06-05 16:10:33 +02:00
2014-08-01 18:30:08 +01:00
2014-08-15 18:54:07 +04:00
2014-08-01 15:57:28 +00:00
2014-07-07 10:37:40 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%