[GEDI] [PATCH v2.5 02/11] file-posix, gluster: Handle zero block status hint better

Stefan Hajnoczi stefanha at redhat.com
Tue Apr 22 14:43:39 UTC 2025


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 <eblake at 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 <stefanha at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.gluster.org/pipermail/integration/attachments/20250422/e55f29d4/attachment.sig>


More information about the integration mailing list