]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Return correct values from disk IOV functions
authorSasha Levin <levinsasha928@gmail.com>
Sun, 15 May 2011 10:22:39 +0000 (13:22 +0300)
committerPekka Enberg <penberg@kernel.org>
Sun, 15 May 2011 10:52:18 +0000 (13:52 +0300)
commitf072ebe8c41555d76a25bbe56a0541623222355f
tree66b69cdcb9a90ad764a629bac1204c9f23ae9450
parent3747b1ae432e871e31578d781ad8cb83746c5bb9
kvm tools: Return correct values from disk IOV functions

Currently read/write IOV functions return an incorrect
value instead of the amount of bytes read/written.

This incorrect value may cause errors within the virtio layer.

Return correct amount of bytes read/written from _iov functions.

[ penberg@kernel.org: don't use 'inline' for out-of-line functions ]
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/disk-image.c
tools/kvm/include/kvm/disk-image.h