Re: [Qemu-devel] [PATCH for-4.0] block: Forward 'discard' to temporary overlay

2019-04-04 Thread Stefano Garzarella
On Thu, Apr 04, 2019 at 05:07:46PM +0200, Kevin Wolf wrote: > 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

Re: [Qemu-devel] [PATCH for-4.0] block: Forward 'discard' to temporary overlay

2019-04-04 Thread Eric Blake
On 4/4/19 10:07 AM, Kevin Wolf wrote: > 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

[Qemu-devel] [PATCH for-4.0] block: Forward 'discard' to temporary overlay

2019-04-04 Thread Kevin Wolf
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 --