Re: [PATCH 02/21] util: Introduce virPrettySize

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

 




On 11/13/2017 03:50 AM, Martin Kletzander wrote:
> We can't output better memory sizes if we want to be compatible with libvirt
> older than the one which introduced /memory/unit, but for new things we can just
> output nicer capacity to the user if available.  And this function enables that.
> 
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
>  src/libvirt_private.syms |  1 +
>  src/util/virutil.c       | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
>  src/util/virutil.h       |  3 +++
>  3 files changed, 54 insertions(+)
> 

Since we have virFormatIntDecimal, why not change the name to be
virFormatPrettySize. I'd also support moving it closer to the virFormat*
function (both .c and .h), but it's not a "requirement"...

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

John

--
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]
  Powered by Linux