Description of problem:
$ truncate -s 1G test_sparse
$ echo "a" >> test_sparse
$ qemu-img map test_sparse
Version-Release number of selected component:
cmdline: qemu-img map test_sparse
runlevel: N 5
Thread no. 1 (2 frames)
#4 get_block_status at qemu-img.c:2190
#5 img_map at qemu-img.c:2286
Created attachment 1036422 [details]
Created attachment 1036423 [details]
Created attachment 1036424 [details]
Created attachment 1036425 [details]
Created attachment 1036426 [details]
Created attachment 1036427 [details]
Created attachment 1036428 [details]
Created attachment 1036429 [details]
Created attachment 1036430 [details]
Created attachment 1036431 [details]
Created attachment 1036432 [details]
Created attachment 1036433 [details]
Thanks for the simple reproducer! The assertion reproduces for me with qemu-2.1 up to current qemu.git
CCing some block layer folks
Sent an upstream patch to fix this:
qemu-2.3.0-7.fc22 has been submitted as an update for Fedora 22.
qemu-2.3.1-1.fc22 has been submitted as an update for Fedora 22.
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qemu-2.3.1-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
qemu-2.3.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.