
26 Sep
2017
26 Sep
'17
7:37 p.m.
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@redhat.com> John