Re: [Qemu-block] [RFC 2/5] block: Generic truncation fallback

2019-07-12 Thread Max Reitz
On 12.07.19 13:48, Max Reitz wrote: > On 12.07.19 13:17, Kevin Wolf wrote: >> Am 12.07.2019 um 12:58 hat Max Reitz geschrieben: >>> On 12.07.19 11:49, Kevin Wolf wrote: Am 11.07.2019 um 21:58 hat Max Reitz geschrieben: > If a protocol driver does not support truncation, we call fall back

Re: [Qemu-block] [RFC 2/5] block: Generic truncation fallback

2019-07-12 Thread Max Reitz
On 12.07.19 13:17, Kevin Wolf wrote: > Am 12.07.2019 um 12:58 hat Max Reitz geschrieben: >> On 12.07.19 11:49, Kevin Wolf wrote: >>> Am 11.07.2019 um 21:58 hat Max Reitz geschrieben: If a protocol driver does not support truncation, we call fall back to effectively not doing anything if

Re: [Qemu-block] [RFC 2/5] block: Generic truncation fallback

2019-07-12 Thread Kevin Wolf
Am 12.07.2019 um 12:58 hat Max Reitz geschrieben: > On 12.07.19 11:49, Kevin Wolf wrote: > > Am 11.07.2019 um 21:58 hat Max Reitz geschrieben: > >> If a protocol driver does not support truncation, we call fall back to > >> effectively not doing anything if the new size is less than the actual >

Re: [Qemu-block] [RFC 2/5] block: Generic truncation fallback

2019-07-12 Thread Max Reitz
On 12.07.19 11:49, Kevin Wolf wrote: > Am 11.07.2019 um 21:58 hat Max Reitz geschrieben: >> If a protocol driver does not support truncation, we call fall back to >> effectively not doing anything if the new size is less than the actual >> file size. This is what we have been doing for some host

Re: [Qemu-block] [RFC 2/5] block: Generic truncation fallback

2019-07-12 Thread Kevin Wolf
Am 11.07.2019 um 21:58 hat Max Reitz geschrieben: > If a protocol driver does not support truncation, we call fall back to > effectively not doing anything if the new size is less than the actual > file size. This is what we have been doing for some host device drivers > already. Specifically,

[Qemu-block] [RFC 2/5] block: Generic truncation fallback

2019-07-11 Thread Max Reitz
If a protocol driver does not support truncation, we call fall back to effectively not doing anything if the new size is less than the actual file size. This is what we have been doing for some host device drivers already. The only caveat is that we have to zero out everything in the first