Re: [PATCH v2 02/11] file-posix: Handle zero block status hint better

2025-04-17 Thread Stefan Hajnoczi
On Thu, Apr 17, 2025 at 01:39:07PM -0500, Eric Blake wrote: > Although the previous patch to change 'bool want_zero' into an enum > made no semantic change, it is now time to differentiate. When the > caller specifically wants to know what parts of the file read as zero, > we need to use lseek and

[PATCH v2 02/11] file-posix: Handle zero block status hint better

2025-04-17 Thread Eric Blake
Although the previous patch to change 'bool want_zero' into an enum made no semantic change, it is now time to differentiate. When the caller specifically wants to know what parts of the file read as zero, we need to use lseek and actually reporting holes, rather than short-circuiting and advertis