[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/5] qemu-img: add compressed clusters to BlockF
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 4/5] qemu-img: add compressed clusters to BlockFragInfo |
Date: |
Wed, 06 Feb 2013 14:48:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Am 06.02.2013 14:40, schrieb Eric Blake:
> On 02/06/2013 04:43 AM, Kevin Wolf wrote:
>>
>> Instead of getting a longer and longer output line for each new number
>> we add, maybe we could use the chance to introduce multiline output:
>>
>> Total number of clusters: 1000
>> - allocated 427 (42.7%)
>> - fragmented 71 (7.1%)
>> - compressed 120 (12.0%)
>
> That's a bit nicer for scraping the output, but the ultimate niceness
> would be providing an --output=json representation, where the JSON
> objects are only output when present.
Er yes, but this was meant for humans, not for parsers... Don't scrape
output without at least telling us before, or you'll get to keep the pieces.
Kevin