fallocate64
Description:
preallocate a file in the guest filesystem
This command preallocates a file (containing zero bytes) named path
of size len
bytes. If the file exists already, it
is overwritten.
Note that this call allocates disk blocks for the file. To create a sparse file use truncate_size instead.
The deprecated call fallocate does the same, but owing to an oversight it only allowed 30 bit lengths to be specified, effectively limiting the maximum size of files created through that call to 1GB.
Do not confuse this with the guestfish-specific alloc
and sparse
commands which create a file in the host and attach
it as a device.
Parameters:
this |
A GuestfsSession object |
Returns:
true on success, false on error |