[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/5] qemu-img: avoid excessive BlockFragInfo
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/5] qemu-img: avoid excessive BlockFragInfo line length |
Date: |
Wed, 06 Feb 2013 06:35:37 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 02/06/2013 04:30 AM, Kevin Wolf wrote:
>>
>> - if (result.bfi.total_clusters != 0 && result.bfi.allocated_clusters !=
>> 0) {
>> - printf("%" PRId64 "/%" PRId64 "= %0.2f%% allocated, %0.2f%%
>> fragmented\n",
>> - result.bfi.allocated_clusters, result.bfi.total_clusters,
>> - result.bfi.allocated_clusters * 100.0 / result.bfi.total_clusters,
>> - result.bfi.fragmented_clusters * 100.0 /
>> result.bfi.allocated_clusters);
>> + if (bfi->total_clusters != 0 && bfi->allocated_clusters != 0) {
>> + printf("%" PRId64 "/%" PRId64 "= %0.2f%% allocated, "
>
> Can you add a space before the '=' while touching this?
Perhaps he can, but as this is user-visible output, and we don't yet
have a way to force JSON output to get at the same information,
arbitrarily changing the output format may break some existing user that
is scraping the output. It would be nice if we had access to this
output information in a more stable format.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 0/5] qcow2: add fragmentation and compression info support, Stefan Hajnoczi, 2013/02/06
- [Qemu-devel] [PATCH v2 1/5] qcow2: introduce check_refcounts_l1/l2() flags, Stefan Hajnoczi, 2013/02/06
- [Qemu-devel] [PATCH v2 2/5] qcow2: record fragmentation statistics during check, Stefan Hajnoczi, 2013/02/06
- [Qemu-devel] [PATCH v2 3/5] qemu-img: avoid excessive BlockFragInfo line length, Stefan Hajnoczi, 2013/02/06
- [Qemu-devel] [PATCH v2 4/5] qemu-img: add compressed clusters to BlockFragInfo, Stefan Hajnoczi, 2013/02/06
- [Qemu-devel] [PATCH v2 5/5] qcow2: support compressed clusters in BlockFragInfo, Stefan Hajnoczi, 2013/02/06
- Re: [Qemu-devel] [PATCH v2 0/5] qcow2: add fragmentation and compression info support, Eric Blake, 2013/02/06