mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
1bce6b4ce3
commit
4401fdc77c
3 changed files with 23 additions and 17 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
function do_is_allocated() {
|
||||
local start=$1
|
||||
local size=$(( $2 / 512))
|
||||
local size=$2
|
||||
local step=$3
|
||||
local count=$4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue