Re: [PATCH 3/3] Shrink volume even with ALLOCATE flag

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

 




On 09/25/2017 11:46 AM, Ján Tomko wrote:
> Calling fallocate on the new (smaller) capacity ensures
> that the whole file is allocated, but it does not reduce
> the file size.
> 
> Also call ftruncate after fallocate.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1366446
> ---
>  src/util/virstoragefile.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux