diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/generator.ml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/generator.ml b/src/generator.ml index 2209e68b..99d80fb1 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3925,8 +3925,13 @@ file must exist already."); "truncate a file to a particular size", "\ This command truncates C<path> to size C<size> bytes. The file -must exist already. If the file is smaller than C<size> then -the file is extended to the required size with null bytes."); +must exist already. + +If the current file size is less than C<size> then +the file is extended to the required size with zero bytes. +This creates a sparse file (ie. disk blocks are not allocated +for the file until you write to it). To create a non-sparse +file of zeroes, use C<guestfs_fallocate64> instead."); ("utimens", (RErr, [Pathname "path"; Int64 "atsecs"; Int64 "atnsecs"; Int64 "mtsecs"; Int64 "mtnsecs"]), 201, [], [InitBasicFS, Always, TestOutputStruct ( |