qemu-io: Switch 'alloc' command to byte-based length
commit4401fdc77cb6d79e53ce2fc2193444cad8b95749
authorEric Blake <eblake@redhat.com>
Sat, 29 Apr 2017 19:14:12 +0000 (29 14:14 -0500)
committerMax Reitz <mreitz@redhat.com>
Thu, 11 May 2017 12:28:05 +0000 (11 14:28 +0200)
treeb4bab705e4ae3a5889afaae015861b31b27e7ea2
parent1bce6b4ce3ba03015bdf16d40c1bbe33d8b6031b
qemu-io: Switch 'alloc' command to byte-based length

For the 'alloc' command, accepting an offset in bytes but a length
in sectors, and reporting output in sectors, is confusing.  Do
everything in bytes, and adjust the expected output accordingly.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 20170429191419.30051-3-eblake@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-io-cmds.c
tests/qemu-iotests/019.out
tests/qemu-iotests/common.pattern