*** Bug 1290683 has been marked as a duplicate of this bug. ***
Reproduced this bug with qemu-img-rhev-2.3.0-31.el7.x86_64 & qemu-kvm-rhev-2.3.0-31.el7.x86_64 [root@dhcp-8-118 qemu230]# truncate -s 1G test_sparse [root@dhcp-8-118 qemu230]# echo "a" >> test_sparse [root@dhcp-8-118 qemu230]# qemu-img map test_sparse Offset Length Mapped to File qemu-img: qemu-img.c:2294: get_block_status: Assertion `nb_sectors' failed. Aborted (core dumped) -------------------------------------------------------------------- Verified the bug with qemu-img-rhev-2.6.0-4.el7.x86_64 & qemu-kvm-rhev-2.6.0-4.el7.x86_64 [root@dhcp-8-118 opt]# truncate -s 1G test_sparse [root@dhcp-8-118 opt]# echo "a" >> test_sparse [root@dhcp-8-118 opt]# qemu-img map test_sparse Offset Length Mapped to File 0x40000000 0x200 0x40000000 test_sparse according to this result. The bug is fixed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2673.html