Incomplete patch.

Usecase: `qemu-img convert` with -p now shows the write speed.

1. I'm calculating the speed using the time taken to run the for(;;)
at qemu-img.c:1477. I figured that every time this loop runs, n1
sectors are converted, and so I calculate the write_speed
accordingly. Is this correct?

2. I have changed qemu-progress.c:qemu_progress_print() to take in a
speed parameter, thinking that it would be the best option. Should I
do it some other way instead (maybe write another function to print
just speed)?

** Patch added: "[PATCH/RFC]"
   
https://bugs.launchpad.net/qemu/+bug/603872/+attachment/3911803/+files/0001-qemu-img-show-image-conversion-speed.patch

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/603872

Title:
  [Feature request] qemu-img image conversion does not show percentage

Status in QEMU:
  New

Bug description:
  It will be nice if qemu-img will be able to show percentage of
  completition and average speed of conversion and compress ratio (if
  converting to compressed qcow or qcow2)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/603872/+subscriptions

Reply via email to