From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>,
qemu-devel@nongnu.org, kwolf@redhat.com,
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
Alberto Garcia <berto@igalia.com>,
qemu-block@nongnu.org,
"Richard W . M . Jones" <rjones@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-4.1 v2] qemu-img: Saner printing of large file sizes
Date: Wed, 17 Apr 2019 18:21:09 +0100 [thread overview]
Message-ID: <20190417172109.GW7535@redhat.com> (raw)
In-Reply-To: <39599f7c-c3c6-73c9-7f74-0e70270c49de@redhat.com>
On Wed, Apr 17, 2019 at 11:58:57AM -0500, Eric Blake wrote:
> On 4/10/19 2:28 PM, Max Reitz wrote:
> > On 01.04.19 16:57, Eric Blake wrote:
> >> Disk sizes close to INT64_MAX cause overflow, for some pretty
> >> ridiculous output:
> >>
> >> $ ./nbdkit -U - memory size=$((2**63 - 512)) --run 'qemu-img info $nbd'
> >> image: nbd+unix://?socket=/tmp/nbdkitHSAzNz/socket
> >> file format: raw
> >> virtual size: -8388607T (9223372036854775296 bytes)
> >> disk size: unavailable
> >>
>
> >
> > There are more iotests this breaks. First, there is 059 for vmdk, which
> > looks just like the rest.
>
> Easy enough; I was able to reproduce.
>
> >
> > But for -m32, it gets a bit more difficult. Every size above 999 GB
> > (1000 GB gets rounded to 1 TB, which is 2^31 * 512) gets printed as
> > "inf [unit]":
>
> Ouch - pre-existing bug in size_to_str(); I'll have to fix that, then
> send a v3.
>
> Kevin, do you want to unqueue this from block-next until then?
>
> >
> > But regardless of the iotests, we shouldn’t show the size as infinite
> > just because of -m32.
>
> Is there an easy docker setup for building -m32?
QEMU has a "fedora-i386-cross" image you can at least do builds in
Hopefully its good enough for make check too
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
WARNING: multiple messages have this Message-ID (diff)
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: kwolf@redhat.com,
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
Alberto Garcia <berto@igalia.com>,
qemu-block@nongnu.org,
"Richard W . M . Jones" <rjones@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-4.1 v2] qemu-img: Saner printing of large file sizes
Date: Wed, 17 Apr 2019 18:21:09 +0100 [thread overview]
Message-ID: <20190417172109.GW7535@redhat.com> (raw)
Message-ID: <20190417172109.pJaM8jNJp5KfwtOI83xgIK1J2Waok92t5ZaGhUE-yWQ@z> (raw)
In-Reply-To: <39599f7c-c3c6-73c9-7f74-0e70270c49de@redhat.com>
On Wed, Apr 17, 2019 at 11:58:57AM -0500, Eric Blake wrote:
> On 4/10/19 2:28 PM, Max Reitz wrote:
> > On 01.04.19 16:57, Eric Blake wrote:
> >> Disk sizes close to INT64_MAX cause overflow, for some pretty
> >> ridiculous output:
> >>
> >> $ ./nbdkit -U - memory size=$((2**63 - 512)) --run 'qemu-img info $nbd'
> >> image: nbd+unix://?socket=/tmp/nbdkitHSAzNz/socket
> >> file format: raw
> >> virtual size: -8388607T (9223372036854775296 bytes)
> >> disk size: unavailable
> >>
>
> >
> > There are more iotests this breaks. First, there is 059 for vmdk, which
> > looks just like the rest.
>
> Easy enough; I was able to reproduce.
>
> >
> > But for -m32, it gets a bit more difficult. Every size above 999 GB
> > (1000 GB gets rounded to 1 TB, which is 2^31 * 512) gets printed as
> > "inf [unit]":
>
> Ouch - pre-existing bug in size_to_str(); I'll have to fix that, then
> send a v3.
>
> Kevin, do you want to unqueue this from block-next until then?
>
> >
> > But regardless of the iotests, we shouldn’t show the size as infinite
> > just because of -m32.
>
> Is there an easy docker setup for building -m32?
QEMU has a "fedora-i386-cross" image you can at least do builds in
Hopefully its good enough for make check too
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2019-04-17 17:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-01 14:57 [Qemu-devel] [PATCH for-4.1 v2] qemu-img: Saner printing of large file sizes Eric Blake
2019-04-01 15:24 ` Kevin Wolf
2019-04-10 19:28 ` Max Reitz
2019-04-10 19:28 ` Max Reitz
2019-04-17 16:58 ` Eric Blake
2019-04-17 16:58 ` Eric Blake
2019-04-17 17:11 ` Max Reitz
2019-04-17 17:11 ` Max Reitz
2019-04-17 17:21 ` Daniel P. Berrangé [this message]
2019-04-17 17:21 ` Daniel P. Berrangé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190417172109.GW7535@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
--cc=vsementsov@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.