X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfish-actions.pod;h=78cb4b7731f49caa3974e5fd6085dbc628736287;hp=5013a280a2e9e6b4daea255c18e7c1d84d0ce2e1;hb=24ccbb29ac475187f51a27dcd318db2b4824a0c1;hpb=aef3d2013fee188c9607f35657c45df88503cd64 diff --git a/guestfish-actions.pod b/guestfish-actions.pod index 5013a28..78cb4b7 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -296,6 +296,51 @@ Because of the message protocol, there is a transfer limit of somewhere between 2MB and 4MB. To transfer large files you should use FTP. +=head2 checksum + + checksum csumtype path + +This call computes the MD5, SHAx or CRC checksum of the +file named C. + +The type of checksum to compute is given by the C +parameter which must have one of the following values: + +=over 4 + +=item C + +Compute the cyclic redundancy check (CRC) specified by POSIX +for the C command. + +=item C + +Compute the MD5 hash (using the C program). + +=item C + +Compute the SHA1 hash (using the C program). + +=item C + +Compute the SHA224 hash (using the C program). + +=item C + +Compute the SHA256 hash (using the C program). + +=item C + +Compute the SHA384 hash (using the C program). + +=item C + +Compute the SHA512 hash (using the C program). + +=back + +The checksum is returned as a printable string. + =head2 chmod chmod mode path