On Fri, Apr 18, 2025 at 04:52:47PM -0500, Eric Blake wrote: > Although the previous patch to change 'bool want_zero' into a bitmask > 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 advertising full allocation. > > This change will be utilized in later patches to let mirroring > optimize for the case when the destination already reads as zeroes. > > Signed-off-by: Eric Blake <ebl...@redhat.com> > --- > > Compared to v2, also adjust the gluster driver which copies file-posix. > > block/file-posix.c | 3 ++- > block/gluster.c | 2 +- > 2 files changed, 3 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature