Re: [Qemu-devel] [PATCH v2] qemu-img: Check post-truncation size

2018-05-09 Thread Max Reitz
On 2018-04-21 18:39, Max Reitz wrote: > Some block drivers (iscsi and file-posix when dealing with device files) > do not actually support truncation, even though they provide a > .bdrv_truncate() method and will happily return success when providing a > new size that does not exceed the current si

[Qemu-devel] [PATCH v2] qemu-img: Check post-truncation size

2018-04-21 Thread Max Reitz
Some block drivers (iscsi and file-posix when dealing with device files) do not actually support truncation, even though they provide a .bdrv_truncate() method and will happily return success when providing a new size that does not exceed the current size. This is because these drivers expect the