X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgenerator.ml;h=99d80fb19644dfb1270d7a79fd072c606cadb306;hb=d12a702fe1898f3ea421210d92c705440efe07a8;hp=96a58478d6c0041790103887ba1cde11748586cd;hpb=6b500f1b8e1ac8d28c485a5591c2833b18cc86e2;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index 96a5847..99d80fb 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3152,7 +3152,7 @@ Unknown file type =item '?' -The L returned a C field with an +The L call returned a C field with an unexpected value =back @@ -3925,8 +3925,13 @@ file must exist already."); "truncate a file to a particular size", "\ This command truncates C to size C bytes. The file -must exist already. If the file is smaller than C then -the file is extended to the required size with null bytes."); +must exist already. + +If the current file size is less than C 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 instead."); ("utimens", (RErr, [Pathname "path"; Int64 "atsecs"; Int64 "atnsecs"; Int64 "mtsecs"; Int64 "mtnsecs"]), 201, [], [InitBasicFS, Always, TestOutputStruct ( @@ -4036,7 +4041,7 @@ C is the list of files from this directory. On return you get a list of strings, with a one-to-one correspondence to the C list. Each string is the -value of the symbol link. +value of the symbolic link. If the C operation fails on any name, then the corresponding result string is the empty string C<\"\">.