Re: [libvirt] [PATCH] storage: fix file allocation behavior in file cloning

2013-10-04 Thread Michal Privoznik
On 30.09.2013 18:57, Oskari Saarenmaa wrote: > Fixed the safezero call for allocating the rest of the file after cloning > an existing volume; it used to always use a zero offset, causing it to > only allocate the beginning of the file. > > Also modified file creation to try to use fallocate(2) to

[libvirt] [PATCH] storage: fix file allocation behavior in file cloning

2013-09-30 Thread Oskari Saarenmaa
Fixed the safezero call for allocating the rest of the file after cloning an existing volume; it used to always use a zero offset, causing it to only allocate the beginning of the file. Also modified file creation to try to use fallocate(2) to pre-allocate disk space before copying any data to mak