]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-io-cmds.c
qemu-io: Switch to byte-based block access
authorEric Blake <eblake@redhat.com>
Fri, 6 May 2016 16:26:44 +0000 (10:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:09 +0000 (15:22 +0200)
commit7b3f9712e1b64bd811ac3657fc1cb05f9e3f5d87
treeefc5290687dc7be1ea0fb6386e056f1a44474851
parent9166920a0b8481dde8d011d07cc4c733c81223eb
qemu-io: Switch to byte-based block access

qemu-io is the last user of several sector-based interfaces.
This patch upgrades to the new interfaces under the hood,
then deletes the resulting dead code.  Note that for maximum
back-compat, while the -p option is no longer required to get
blk_pread(), it is still needed to allow for unaligned access;
this is because qemu-iotest 23 relies on qemu-io rejecting
unaligned accesses without -p.  A later patch may clean up the
interface to be more user-friendly, but it's better to separate
what's done under the hood from what the user sees.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io-cmds.c