Bug #1300209 is a regression in 2.5, introduced during the change away from bdrv_swap().
When we change the parent backing link (change_parent_backing_link), we must also accomodate non-NULL tqe_prev pointers that point to a NULL entry. Please see patch #1 for more details. Jeff Cody (2): block: change parent backing link when *tqe_prev == NULL block: qemu-iotests - add test for snapshot, commit, snapshot bug block.c | 2 +- tests/qemu-iotests/143 | 114 +++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/143.out | 24 ++++++++++ tests/qemu-iotests/group | 1 + 4 files changed, 140 insertions(+), 1 deletion(-) create mode 100755 tests/qemu-iotests/143 create mode 100644 tests/qemu-iotests/143.out -- 1.9.3