On 4/15/19 10:54 AM, Kevin Wolf wrote: > Limiting the allocation to INT_MAX bytes isn't particularly clever > because it means that the final cluster will be a partial cluster which > will be completed through a COW operation. This results in unnecessary > data read and write requests which lead to an unwanted non-sparse > filesystem block for metadata preallocation. > > Align the maximum allocation size down to the cluster size to avoid this > situation. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > block/qcow2.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature