X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=14cf462afcc2a144922925e9fca69adf08306f2a;hp=c51df3823cfa926e5b2aafa21277fbcb5aefdbf9;hb=41ee105aabaf1e9a7efc437b87d9536d3dc14a75;hpb=89a707aac5aa75d70cbb3049e8d328cfe6a40dea diff --git a/src/generator.ml b/src/generator.ml index c51df38..14cf462 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -2028,7 +2028,9 @@ Compute the SHA512 hash (using the C program). The checksum is returned as a printable string. -To get the checksum for a device, use C."); +To get the checksum for a device, use C. + +To get the checksums for many files, use C."); ("tar_in", (RErr, [FileIn "tarfile"; Pathname "directory"]), 69, [], [InitBasicFS, Always, TestOutput ( @@ -4546,6 +4548,22 @@ to C."); This command downloads the contents of C, writing it out to local file C encoded as base64."); + ("checksums_out", (RErr, [String "csumtype"; Pathname "directory"; FileOut "sumsfile"]), 244, [], + [], + "compute MD5, SHAx or CRC checksum of files in a directory", + "\ +This command computes the checksums of all regular files in +C and then emits a list of those checksums to +the local output file C. + +This can be used for verifying the integrity of a virtual +machine. However to be properly secure you should pay +attention to the output of the checksum command (it uses +the ones from GNU coreutils). In particular when the +filename is not printable, coreutils uses a special +backslash syntax. For more information, see the GNU +coreutils info file."); + ] let all_functions = non_daemon_functions @ daemon_functions