summaryrefslogtreecommitdiffstats
path: root/buffered_file.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-13 03:07:56 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-13 03:07:56 +0000
commit871d2f079661323a7645b388eb5ae8d7eeb3117c (patch)
treee7f554ea48fd462199e312911d391061e2762fdb /buffered_file.c
parent7526aa2d0082558bc4e89dab9f7a37b0d509a71a (diff)
downloadhqemu-871d2f079661323a7645b388eb5ae8d7eeb3117c.zip
hqemu-871d2f079661323a7645b388eb5ae8d7eeb3117c.tar.gz
Fix some issues with QEMUFile
This patch allows QEMUFile's read and write operations to return negative error codes. This is necessary to detect things like closed streams during live migration. It also removes unused code for QEMUFileFD write path. Finally, it makes sure to avoid attempting to flush an output buffer if the file is only being used for input. This was spotted by Uri Lublin. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5474 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'buffered_file.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud