Re: [PATCH v3 08/18] blockjob: add new --raw flag to virsh blockjob

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

 



On 09/04/2014 10:23 AM, Peter Krempa wrote:
> On 08/31/14 06:02, Eric Blake wrote:
>> The current output of 'blockjob [--info]' is a single line
>> designed for human consumption; it's not very nice for machine
>> parsing.  Furthermore, I have plans to modify the line in
>> response to the new flag for controlling bandwidth units.
>> Solve that by adding a --raw parameter, which outputs
>> information closer to the C struct.
>>
>> $ virsh blockjob testvm1 vda --raw
>>  type=Block Copy
>>  bandwidth=1
>>  cur=197120
>>  end=197120
>>
>> The information is indented, because I'd like for a later patch
>> to add a mode that iterates over all the vm's disks with status
>> for each; in that mode, each block name would be listed unindented
>> before information (if any) about that block.

I haven't actually finished adding a loop operation yet, but hope to
have it in v4.

>> * tools/virsh-domain.c (cmdBlockJob): Add --raw parameter; tweak
>> error wording.
>> * tools/virsh.pod (blockjob): Document it.
>>
>> Signed-off-by: Eric Blake <eblake@xxxxxxxxxx>
>> ---
>>  tools/virsh-domain.c | 31 +++++++++++++++++++++++--------
>>  tools/virsh.pod      | 19 ++++++++++++-------
>>  2 files changed, 35 insertions(+), 15 deletions(-)
>>
> 
> ACK,

Pushed after fixing an accidental double space.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]