qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 3/7] gluster: Query current size in do_truncate()
Date: Tue, 13 Feb 2018 08:57:50 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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 <address@hidden>
---
  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 <address@hidden>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]