From: Thomas Huth <thuth@redhat.com>
To: Max Reitz <mreitz@redhat.com>, Qemu-block <qemu-block@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>
Cc: Kevin Wolf <kwolf@redhat.com>, Nir Soffer <nirsof@gmail.com>
Subject: Re: [Qemu-devel] Failing QEMU iotest 175
Date: Fri, 10 May 2019 18:42:11 +0200 [thread overview]
Message-ID: <0eb76ceb-8fdd-6db3-86ff-b0aa7ca32141@redhat.com> (raw)
In-Reply-To: <b121ec96-4cfe-47fe-0415-533cfd842777@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2463 bytes --]
On 10/05/2019 15.54, Max Reitz wrote:
> On 28.04.19 17:18, Thomas Huth wrote:
>> QEMU iotest 175 is failing for me when I run it with -raw:
>>
>> $ ./check -raw 175
>> QEMU --
>> "/home/thuth/tmp/qemu-build/tests/qemu-iotests/../../x86_64-softmmu/qemu-system-x86_64"
>> -nodefaults -machine accel=qtest
>> QEMU_IMG --
>> "/home/thuth/tmp/qemu-build/tests/qemu-iotests/../../qemu-img"
>> QEMU_IO --
>> "/home/thuth/tmp/qemu-build/tests/qemu-iotests/../../qemu-io" --cache
>> writeback -f raw
>> QEMU_NBD --
>> "/home/thuth/tmp/qemu-build/tests/qemu-iotests/../../qemu-nbd"
>> IMGFMT -- raw
>> IMGPROTO -- file
>> PLATFORM -- Linux/x86_64 thuth 3.10.0-957.10.1.el7.x86_64
>> TEST_DIR -- /home/thuth/tmp/qemu-build/tests/qemu-iotests/scratch
>> SOCKET_SCM_HELPER --
>> /home/thuth/tmp/qemu-build/tests/qemu-iotests/socket_scm_helper
>>
>> 175 - output mismatch (see 175.out.bad)
>> --- /home/thuth/devel/qemu/tests/qemu-iotests/175.out 2019-04-23
>> 16:43:12.000000000 +0200
>> +++ /home/thuth/tmp/qemu-build/tests/qemu-iotests/175.out.bad 2019-04-28
>> 17:17:32.000000000 +0200
>> @@ -2,17 +2,17 @@
>>
>> == creating image with default preallocation ==
>> Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
>> -size=1048576, blocks=0
>> +size=1048576, blocks=2
>>
>> == creating image with preallocation off ==
>> Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 preallocation=off
>> -size=1048576, blocks=0
>> +size=1048576, blocks=2
>>
>> == creating image with preallocation full ==
>> Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 preallocation=full
>> -size=1048576, blocks=2048
>> +size=1048576, blocks=2050
>>
>> == creating image with preallocation falloc ==
>> Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
>> preallocation=falloc
>> -size=1048576, blocks=2048
>> +size=1048576, blocks=2050
>> *** done
>> Failures: 175
>> Failed 1 of 1 tests
>>
>> Any ideas how to fix this?
>
> Hm. What output does
>
> $ touch foo
> $ stat -c "size=%s, blocks=%b" foo
> $ truncate -s 1M foo
> $ stat -c "size=%s, blocks=%b" foo
>
> give for you?
>
> If any of that returns blocks=2, we can probably just use that operation
> to fix the result, then.
$ stat -c "size=%s, blocks=%b" foo
size=0, blocks=2
$ truncate -s 1M foo
$ stat -c "size=%s, blocks=%b" foo
size=1048576, blocks=2
Thomas
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2019-05-10 16:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 15:18 [Qemu-devel] Failing QEMU iotest 175 Thomas Huth
2019-04-28 15:18 ` Thomas Huth
2019-05-02 21:56 ` Eric Blake
2019-05-02 21:56 ` Eric Blake
2019-05-03 4:37 ` Thomas Huth
2019-05-03 4:37 ` Thomas Huth
2019-05-03 20:21 ` Eric Blake
2019-05-03 20:21 ` Eric Blake
2019-05-03 21:31 ` Nir Soffer
2019-05-03 21:31 ` Nir Soffer
2019-05-10 21:15 ` [Qemu-devel] [Qemu-block] " Nir Soffer
2019-05-04 6:51 ` [Qemu-devel] " Thomas Huth
2019-05-04 6:51 ` Thomas Huth
2019-05-06 17:44 ` Eric Blake
2019-05-15 14:56 ` Stefan Hajnoczi
2019-05-10 13:54 ` Max Reitz
2019-05-10 16:42 ` Thomas Huth [this message]
2019-05-10 17:39 ` Max Reitz
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=0eb76ceb-8fdd-6db3-86ff-b0aa7ca32141@redhat.com \
--to=thuth@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=nirsof@gmail.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).