qemu-io: Fix discard command
commita9c49a6b023fd3706002fd8d549c58f0343932f8
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Jan 2011 15:56:34 +0000 (26 16:56 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:03:00 +0000 (31 10:03 +0100)
treeefcc70b73937578fe9ad793631024229a2f0f5f6
parentb4447363469650fc98f67714336cb0baa6156a5e
qemu-io: Fix discard command

qemu-io passed bytes where it's supposed to pass sectors, so discard requests
were off.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qemu-io.c