On 4/28/19 10:18 AM, Thomas Huth wrote: > QEMU iotest 175 is failing for me when I run it with -raw: >
> == creating image with default preallocation == > Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 > -size=1048576, blocks=0 > +size=1048576, blocks=2 What filesystem? It should be fairly obvious that 'stat -c blocks=%b' is file-system dependent (some allocate slightly more or less space, based on granularities and on predictions of future use), so we may need to update the test to apply a filter or otherwise allow a bit of fuzz in the answer. But 0/2 is definitely different than... > > == 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 2048/2050, so we DO have some indication of whether the file is sparse or fully allocated. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature