qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] First Patch, Requesting Comments ‏


From: Max Filippov
Subject: Re: [Qemu-devel] First Patch, Requesting Comments ‏
Date: Mon, 18 Nov 2013 19:45:05 +0400

Hi Varad,

On Mon, Nov 18, 2013 at 5:49 PM, Varad Gautam <address@hidden> wrote:
>
> Hi! I'm new here, and am working on my first bug. I have posted a patch
> for Bug#603872 [1]. It's incomplete right now, but please have a look and
> tell me if I'm headed in the right direction. (I don't know if I can send
> incomplete patches to the mailing list for suggestions or if I run into
> some problems.)

Yes, you can post patches that you'd like to receive comments for,
just mark them appropriately, e.g. RFC instead of PATCH. Also cc
the maintainer of the code you're touching to increase chances for
review, see files MAINTAINERS and scripts/get_maintainer.pl.

> Usecase: `qemu-img convert` with -p now shows the write speed.
>
> I have a few doubts relating to the patch.

To discuss the code you really should post the patch, I couldn't
find any related code by your link.

> 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)?
>
> Also, what does IO_BUF_SIZE in the same file relate to?

Looks like disk I/O processing unit for qemu-img.

> Thanks.
> Varad
>
> [1] https://bugs.launchpad.net/qemu/+bug/603872

-- 
Thanks.
-- Max



reply via email to

[Prev in Thread] Current Thread [Next in Thread]