[libvirt] [PATCH 2/2] Use posix_fallocate() to allocate disk space on supported systems
Daniel P. Berrange
berrange at redhat.com
Fri Mar 20 11:12:02 UTC 2009
On Thu, Mar 19, 2009 at 08:17:54PM +0530, Amit Shah wrote:
> Make use of the safezero() function to allocate disk space instead
> of safewrite() to write zeros. The safezero() function will use
> posix_fallocate() on supported systems.
>
> If progress activity is not requested (current behaviour), the new
> safezero() function will allocate the file in one go.
>
> If progress activity is requested, allocate in 512MiB chunks.
>
> Signed-off-by: Amit Shah <amit.shah at redhat.com>
ACK
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list