Re: [Qemu-devel] [PATCH] file-posix: Check effective size in truncate operation

2019-01-14 Thread Max Reitz
On 26.11.18 04:57, zhenwei pi wrote: > Function raw_co_truncate does not check effective size for BLK device file, > and QEMU may notify guest without any size changing. > > Two cases can be reproduced easily by qmp command: > CASE 1: > 1, create a logical volume(12M) by LVM, and guest uses this v

[Qemu-devel] [PATCH] file-posix: Check effective size in truncate operation

2018-11-25 Thread zhenwei pi
Function raw_co_truncate does not check effective size for BLK device file, and QEMU may notify guest without any size changing. Two cases can be reproduced easily by qmp command: CASE 1: 1, create a logical volume(12M) by LVM, and guest uses this volume as "vdb" 2, run qmp command : virsh qemu-mo