[sheepdog] [Qemu-devel] [PATCH 3/7] gluster: Query current size in do_truncate()

Eric Blake eblake at redhat.com
Tue Feb 13 15:57:50 CET 2018


On 02/13/2018 07:03 AM, Max Reitz wrote:
> Instead of expecting the current size to be 0, query it and allocate
> only the area [current_size, offset) if preallocation is requested.
> 
> Signed-off-by: Max Reitz <mreitz at redhat.com>
> ---
>   block/gluster.c | 21 +++++++++++++++++++--
>   1 file changed, 19 insertions(+), 2 deletions(-)
> 

I don't have a gluster setup handy to test this, but the concept matches 
file-posix and the change looks reasonable.

Reviewed-by: Eric Blake <eblake at redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


More information about the sheepdog mailing list