Re: [PATCH v6 07/10] block: truncate: Don't make backing file data visible

2020-04-23 Thread Vladimir Sementsov-Ogievskiy
23.04.2020 18:01, Kevin Wolf wrote: When extending the size of an image that has a backing file larger than its old size, make sure that the backing file data doesn't become visible in the guest, but the added area is properly zeroed out. Consider the following scenario where the overlay is shor

Re: [PATCH v6 07/10] block: truncate: Don't make backing file data visible

2020-04-23 Thread Max Reitz
On 23.04.20 17:01, Kevin Wolf wrote: > When extending the size of an image that has a backing file larger than > its old size, make sure that the backing file data doesn't become > visible in the guest, but the added area is properly zeroed out. > > Consider the following scenario where the overla

Re: [PATCH v6 07/10] block: truncate: Don't make backing file data visible

2020-04-23 Thread Eric Blake
On 4/23/20 10:01 AM, Kevin Wolf wrote: When extending the size of an image that has a backing file larger than its old size, make sure that the backing file data doesn't become visible in the guest, but the added area is properly zeroed out. Consider the following scenario where the overlay is s

[PATCH v6 07/10] block: truncate: Don't make backing file data visible

2020-04-23 Thread Kevin Wolf
When extending the size of an image that has a backing file larger than its old size, make sure that the backing file data doesn't become visible in the guest, but the added area is properly zeroed out. Consider the following scenario where the overlay is shorter than its backing file: base.q