Re: [Qemu-devel] [PATCH 2/2] parallels: relax check for auto switch of prealloc_mode

2017-04-06 Thread Stefan Hajnoczi
On Wed, Apr 05, 2017 at 06:12:06PM +0300, Denis V. Lunev wrote: > PRL_PREALLOC_MODE_TRUNCATE can be set only through command line. Remove > the check that bdrv_truncate() is working on, this is almost always the > case, while the check could lead to serious consequences during migration > etc when

[Qemu-devel] [PATCH 2/2] parallels: relax check for auto switch of prealloc_mode

2017-04-05 Thread Denis V. Lunev
PRL_PREALLOC_MODE_TRUNCATE can be set only through command line. Remove the check that bdrv_truncate() is working on, this is almost always the case, while the check could lead to serious consequences during migration etc when we should not even try to API which technically could change the image (