]> git.proxmox.com Git - mirror_qemu.git/commit
block: Forward 'discard' to temporary overlay
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 Apr 2019 15:04:43 +0000 (17:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 8 Apr 2019 14:48:46 +0000 (16:48 +0200)
commit3f48686faca1856d74c244b151da1d3a521ef967
tree07c949b754c73f01d830c1d0dc869e5bfe1b69ca
parentf55a585d1037e5de6088f25e75443c2776786e29
block: Forward 'discard' to temporary overlay

When bdrv_temp_snapshot_options() is called for snapshot=on, the
'discard' option in the options QDict hasn't been parsed and merged into
the flags yet. So copy the dict entry to make sure that the temporary
overlay enables discard when it was requested for the drive.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
block.c