]> git.proxmox.com Git - qemu.git/commit
Fix -snapshot deleting images on disk change
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 25 Jul 2010 20:49:34 +0000 (20:49 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jul 2010 11:39:40 +0000 (13:39 +0200)
commit199630b62ec7cc5efd6f860ff545b449c7b5cdb8
treed795207bfcc0327f4f7c032bfdf5262725a9e187
parentc98ac35d87fbd41618c1f02c64bcd4019e42513e
Fix -snapshot deleting images on disk change

Block device change command did not copy BDRV_O_SNAPSHOT flag. Thus
the new image did not have this flag and the file got deleted during
opening.

Fix by copying BDRV_O_SNAPSHOT flag.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
blockdev.c