Re: [PATCH 06/17] block: Improve bdrv_has_zero_init_truncate with backing file

2020-02-10 Thread Alberto Garcia
On Fri 31 Jan 2020 06:44:25 PM CET, Eric Blake wrote: > When we added bdrv_has_zero_init_truncate(), we chose to blindly > return 0 if a backing file was present, because we knew of the corner > case where a backing layer larger than the current layer might leak > the tail of the backing layer into

[PATCH 06/17] block: Improve bdrv_has_zero_init_truncate with backing file

2020-01-31 Thread Eric Blake
When we added bdrv_has_zero_init_truncate(), we chose to blindly return 0 if a backing file was present, because we knew of the corner case where a backing layer larger than the current layer might leak the tail of the backing layer into the resized region. But as this setup is rare, it penalizes