block: another bdrv_append fix
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:51:42 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 May 2012 08:32:12 +0000 (10:32 +0200)
commit3a389e7926750cba5c83f662b1941888b2bebc04
treeccb80705b331227179348ff7337a26d4473f08bc
parente023b2e244ddcc25308309d20c6bfd037897b10c
block: another bdrv_append fix

bdrv_append must also copy open_flags to the top, because the snapshot
has BDRV_O_NO_BACKING set.  This causes interesting results if you
later use drive-reopen (not upstream) to reopen the image, and lose
the backing file in the process.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c