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

2018-04-21 Thread Max Reitz
On 2018-04-21 17:35, Eric Blake wrote: > On 04/20/2018 05:53 PM, 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

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

2018-04-21 Thread Eric Blake
On 04/20/2018 05:53 PM, 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

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

2018-04-20 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