Don't reset bs->is_temporary in bdrv_open_common
commit15c7733bb231090e5ebd6d10060dccdb98bb4941
authorRyan Harper <ryanh@us.ibm.com>
Mon, 28 Jun 2010 14:38:33 +0000 (28 09:38 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 11:18:01 +0000 (2 13:18 +0200)
tree4f59db2e8dab09830758236e2d882d063fa222da
parent0c6f9c17f301f713b88daba6baadf9d7474ece72
Don't reset bs->is_temporary in bdrv_open_common

To fix https://bugs.launchpad.net/qemu/+bug/597402 where qemu fails to
call unlink() on temporary snapshots due to bs->is_temporary getting clobbered
in bdrv_open_common() after being set in bdrv_open() which calls the former.

We don't need to initialize bs->is_temporary in bdrv_open_common().

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c